IVsParseCommandLine.GetSwitchValue(Int32, String) Método

Definição

Obtém o valor analisado de um comutador por índice.

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

Parâmetros

iSwitchIndex
Int32

no Índice do valor de comutador a ser retornado.

pbstrValue
String

fora Ponteiro para uma cadeia de caracteres que contém o valor da opção.

Retornos

Int32

Se o método for bem-sucedido, retornará S_OK. Se falhar, retornará um código de erro.

Comentários

Assinatura COM

De VSShell. idl:

HRESULT IVsParseCommandLine::GetSwitchValue(  
   [in] int iSwitchIndex,   
   [out, retval] BSTR* pbstrValue  
);  

Aplica-se a