IVsParseCommandLine.SwitchHasValue Method

Tests, by index, whether or not a specific switch has a value.

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

Syntax

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

Parameters

  • iIndex
    Type: System.Int32

    [in] Integer. The index of the switch to check.

Return Value

Type: System.Int32
If the switch has no value, returns S_OK. Otherwise, returns E_FAIL.

Remarks

COM Signature

From vsshell.idl:

HRESULT IVsParseCommandLine::SwitchHasValue(
   [in] int iIndex
);

.NET Framework Security

See Also

Reference

IVsParseCommandLine Interface

Microsoft.VisualStudio.Shell.Interop Namespace