Partager via


IVsParseCommandLine.IsSwitchPresent Method

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)

Syntax

'Declaration
Function IsSwitchPresent ( _
    iSwitchIndex As Integer _
) As Integer
int IsSwitchPresent(
    int iSwitchIndex
)
int IsSwitchPresent(
    [InAttribute] int iSwitchIndex
)
abstract IsSwitchPresent : 
        iSwitchIndex:int -> int
function IsSwitchPresent(
    iSwitchIndex : int
) : int

Parameters

  • iSwitchIndex
    Type: Int32

    [in] Index of the switch to test.

Return Value

Type: Int32
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
);

.NET Framework Security

See Also

Reference

IVsParseCommandLine Interface

Microsoft.VisualStudio.Shell.Interop Namespace