次の方法で共有


VsTextManagerClass.AttemptToCheckOutBufferFromScc2 Method

Definition

Attempts to check out a file from source code control.

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

Parameters

pszFileName
String

[in] Filename to check out.

pfCheckoutSucceeded
Int32

[out] Returns true if buffer checkout succeeded.

piStatusFlags
Int32

[out]Additional status flags. This is the tagVSQueryEditResult value returned from a call to QueryEditFiles(UInt32, Int32, String[], UInt32[], VSQEQS_FILE_ATTRIBUTE_DATA[], UInt32, UInt32). If you pass in a value of null for this parameter, then a tagVSQueryEditResult flag is not returned.

Returns

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

Implements

Applies to