Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.