다음을 통해 공유


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

‘선언
Function SwitchHasValue ( _
    iIndex As Integer _
) As Integer
‘사용 방법
Dim instance As IVsParseCommandLine
Dim iIndex As Integer
Dim returnValue As Integer

returnValue = instance.SwitchHasValue(iIndex)
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

IVsParseCommandLine Members

Microsoft.VisualStudio.Shell.Interop Namespace