IVsParseCommandLine.GetSwitchValue(Int32, String) Método
Definição
Importante
Algumas informações se referem a produtos de pré-lançamento que podem ser substancialmente modificados antes do lançamento. A Microsoft não oferece garantias, expressas ou implícitas, das informações aqui fornecidas.
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
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
);