共用方式為


IVsParseCommandLine.GetCommand(String) Method

Definition

Gets the current command.

public:
 int GetCommand([Runtime::InteropServices::Out] System::String ^ % pbstrCommand);
int GetCommand([Runtime::InteropServices::Out] std::wstring const & & pbstrCommand);
public int GetCommand (out string pbstrCommand);
abstract member GetCommand : string -> int
Public Function GetCommand (ByRef pbstrCommand As String) As Integer

Parameters

pbstrCommand
String

[out] Pointer to a string containing the command.

Returns

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

Remarks

COM Signature

From vsshell.idl:

HRESULT IVsParseCommandLine::GetCommand(  
   [out, retval] BSTR* pbstrCommand  
);  

Applies to