Partilhar via


Método IVsTextManager2.AttemptToCheckOutBufferFromScc3

Tenta verificar um arquivo fora do SCC.

Namespace:  Microsoft.VisualStudio.TextManager.Interop
Assembly:  Microsoft.VisualStudio.TextManager.Interop.8.0 (em Microsoft.VisualStudio.TextManager.Interop.8.0.dll)

Sintaxe

'Declaração
Function AttemptToCheckOutBufferFromScc3 ( _
    pBuffer As IVsTextBuffer, _
    pszFileName As String, _
    dwQueryEditFlags As UInteger, _
    <OutAttribute> ByRef pbCheckoutSucceeded As Integer, _
    <OutAttribute> ByRef piStatusFlags As Integer _
) As Integer
int AttemptToCheckOutBufferFromScc3(
    IVsTextBuffer pBuffer,
    string pszFileName,
    uint dwQueryEditFlags,
    out int pbCheckoutSucceeded,
    out int piStatusFlags
)
int AttemptToCheckOutBufferFromScc3(
    [InAttribute] IVsTextBuffer^ pBuffer, 
    [InAttribute] String^ pszFileName, 
    [InAttribute] unsigned int dwQueryEditFlags, 
    [OutAttribute] int% pbCheckoutSucceeded, 
    [OutAttribute] int% piStatusFlags
)
abstract AttemptToCheckOutBufferFromScc3 : 
        pBuffer:IVsTextBuffer * 
        pszFileName:string * 
        dwQueryEditFlags:uint32 * 
        pbCheckoutSucceeded:int byref * 
        piStatusFlags:int byref -> int
function AttemptToCheckOutBufferFromScc3(
    pBuffer : IVsTextBuffer, 
    pszFileName : String, 
    dwQueryEditFlags : uint, 
    pbCheckoutSucceeded : int, 
    piStatusFlags : int
) : int

Parâmetros

  • pszFileName
    Tipo: String

    [in] Nome do arquivo para fazer check-out.

  • dwQueryEditFlags
    Tipo: UInt32

     

  • pbCheckoutSucceeded
    Tipo: Int32%

    [out] true se o check-out bem-sucedida.

Valor de retorno

Tipo: Int32
Se o método for bem-sucedido, ele retorna S_OK.Se ele falhar, ele retorna um código de erro.

Comentários

COM assinatura

De textmgr.idl:

HRESULT IVsTextManager2::AttemptToCheckOutBufferFromScc3(
   [in] IVsTextBuffer *pBuffer,
   [in] const WCHAR *pszFileName,
   [out] BOOL *pbCheckoutSucceeded,
   [out] int *piStatusFlags
);

GetBufferSccStatus3e AttemptToCheckOutBufferFromScc3 são o meio preferido para a interação com o SCC.

Segurança do .NET Framework

Consulte também

Referência

IVsTextManager2 Interface

Namespace Microsoft.VisualStudio.TextManager.Interop