Share via


IVsParseCommandLine.IsSwitchPresent(Int32) Method

Definition

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

public:
 int IsSwitchPresent(int iSwitchIndex);
public:
 int IsSwitchPresent(int iSwitchIndex);
int IsSwitchPresent(int iSwitchIndex);
public int IsSwitchPresent (int iSwitchIndex);
abstract member IsSwitchPresent : int -> int
Public Function IsSwitchPresent (iSwitchIndex As Integer) As Integer

Parameters

iSwitchIndex
Int32

[in] Index of the switch to test.

Returns

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

Remarks

COM Signature

From vsshell.idl:

HRESULT IVsParseCommandLine::IsSwitchPresent(  
   [in] int iSwitchIndex  
);  

Applies to