Share via


IVsParseCommandLine.GetSwitchValue(Int32, String) Method

Definition

Gets the parsed value of a switch by index.

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

Parameters

iSwitchIndex
Int32

[in] Index of the switch value to return.

pbstrValue
String

[out] Pointer to a string containing the switch value.

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::GetSwitchValue(  
   [in] int iSwitchIndex,   
   [out, retval] BSTR* pbstrValue  
);  

Applies to