次の方法で共有


VsTextManagerClass.GetBufferSccStatus2 Method

Returns information on whether a buffer is under source code control and, if so, whether the file is checked in.

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

Syntax

'Declaration
Public Overridable Function GetBufferSccStatus2 ( _
    pszFileName As String, _
    <OutAttribute> ByRef pbNonEditable As Integer, _
    <OutAttribute> ByRef piStatusFlags As Integer _
) As Integer
'Usage
Dim instance As VsTextManagerClass 
Dim pszFileName As String 
Dim pbNonEditable As Integer 
Dim piStatusFlags As Integer 
Dim returnValue As Integer 

returnValue = instance.GetBufferSccStatus2(pszFileName, _
    pbNonEditable, piStatusFlags)
public virtual int GetBufferSccStatus2(
    string pszFileName,
    out int pbNonEditable,
    out int piStatusFlags
)
public:
virtual int GetBufferSccStatus2(
    [InAttribute] String^ pszFileName, 
    [OutAttribute] int% pbNonEditable, 
    [OutAttribute] int% piStatusFlags
)
public function GetBufferSccStatus2(
    pszFileName : String, 
    pbNonEditable : int, 
    piStatusFlags : int
) : int

Parameters

  • pbNonEditable
    Type: System.Int32%

    [out] If true, then the file can not be modified (for example, if the file is under source control and checked in). If false, then the file can be edited.)

  • piStatusFlags
    Type: System.Int32%

    [out] Returns additional status flags. This is the tagVSQueryEditResult value returned from QueryEditFiles. Pass in a value of nulla null reference (Nothing in Visual Basic) for this parameter if you do not want the return value.

Return Value

Type: System.Int32

Implements

IVsTextManager.GetBufferSccStatus2(String, Int32%, Int32%)

.NET Framework Security

See Also

Reference

VsTextManagerClass Class

VsTextManagerClass Members

Microsoft.VisualStudio.TextManager.Interop Namespace