IVsParseCommandLine::GetSwitchValue Method (Int32, String^)

 

Gets the parsed value of a switch by index.

Namespace:   Microsoft.VisualStudio.Shell.Interop
Assembly:  Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)

int GetSwitchValue(
	int iSwitchIndex,
	[OutAttribute] String^% pbstrValue
)

Parameters

iSwitchIndex
Type: System::Int32

[in] Index of the switch value to return.

pbstrValue
Type: System::String^

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

Return Value

Type: System::Int32

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

From vsshell.idl:

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