다음을 통해 공유


IVsTextManager2.GetBufferSccStatus3 Method

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

Syntax

‘선언
Function GetBufferSccStatus3 ( _
    pBuffer As IVsTextBuffer, _
    pszFileName As String, _
    <OutAttribute> ByRef pbCheckoutSucceeded As Integer, _
    <OutAttribute> ByRef piStatusFlags As Integer _
) As Integer
‘사용 방법
Dim instance As IVsTextManager2
Dim pBuffer As IVsTextBuffer
Dim pszFileName As String
Dim pbCheckoutSucceeded As Integer
Dim piStatusFlags As Integer
Dim returnValue As Integer

returnValue = instance.GetBufferSccStatus3(pBuffer, _
    pszFileName, pbCheckoutSucceeded, _
    piStatusFlags)
int GetBufferSccStatus3(
    IVsTextBuffer pBuffer,
    string pszFileName,
    out int pbCheckoutSucceeded,
    out int piStatusFlags
)
int GetBufferSccStatus3(
    [InAttribute] IVsTextBuffer^ pBuffer, 
    [InAttribute] String^ pszFileName, 
    [OutAttribute] int% pbCheckoutSucceeded, 
    [OutAttribute] int% piStatusFlags
)
abstract GetBufferSccStatus3 : 
        pBuffer:IVsTextBuffer * 
        pszFileName:string * 
        pbCheckoutSucceeded:int byref * 
        piStatusFlags:int byref -> int 
function GetBufferSccStatus3(
    pBuffer : IVsTextBuffer, 
    pszFileName : String, 
    pbCheckoutSucceeded : int, 
    piStatusFlags : int
) : int

Parameters

  • pbCheckoutSucceeded
    Type: System.Int32%
    [out] true if checkout succeeded.

Return Value

Type: System.Int32
If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Remarks

COM Signature

From textmgr.idl:

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

GetBufferSccStatus3 and AttemptToCheckOutBufferFromScc3 are the preferred means for interacting with SCC.

.NET Framework Security

See Also

Reference

IVsTextManager2 Interface

IVsTextManager2 Members

Microsoft.VisualStudio.TextManager.Interop Namespace