IVsParseCommandLine::IsSwitchPresent Method (Int32)

 

Queries, by index, whether or not a given switch is present.

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

int IsSwitchPresent(
	int iSwitchIndex
)

Parameters

iSwitchIndex
Type: System::Int32

[in] Index of the switch to test.

Return Value

Type: System::Int32

Returns S_OK if the switch is present, S_FALSE otherwise. Returns E_INVALIDARG if the index is out of range.

From vsshell.idl:

HRESULT IVsParseCommandLine::IsSwitchPresent(
   [in] int iSwitchIndex
);
Return to top
Show: