Compartilhar via


VsTextPackageClass.GetBufferSccStatus2(String, Int32, Int32) Method

Definition

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

public:
 virtual int GetBufferSccStatus2(System::String ^ pszFileName, [Runtime::InteropServices::Out] int % pbNonEditable, [Runtime::InteropServices::Out] int % piStatusFlags) = Microsoft::VisualStudio::TextManager::Interop::IVsTextManager::GetBufferSccStatus2;
public:
 virtual int GetBufferSccStatus2(System::String ^ pszFileName, [Runtime::InteropServices::Out] int % pbNonEditable, [Runtime::InteropServices::Out] int % piStatusFlags);
 virtual int GetBufferSccStatus2(std::wstring const & pszFileName, [Runtime::InteropServices::Out] int & pbNonEditable, [Runtime::InteropServices::Out] int & piStatusFlags);
public virtual int GetBufferSccStatus2 (string pszFileName, out int pbNonEditable, out int piStatusFlags);
abstract member GetBufferSccStatus2 : string * int * int -> int
override this.GetBufferSccStatus2 : string * int * int -> int
Public Overridable Function GetBufferSccStatus2 (pszFileName As String, ByRef pbNonEditable As Integer, ByRef piStatusFlags As Integer) As Integer

Parameters

pszFileName
String

[in] File name of interest.

pbNonEditable
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
Int32

[out] Returns additional status flags. This is the tagVSQueryEditResult value returned from QueryEditFiles(UInt32, Int32, String[], UInt32[], VSQEQS_FILE_ATTRIBUTE_DATA[], UInt32, UInt32). Pass in a value of null for this parameter if you do not want the return value.

Returns

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Implements

Applies to