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
‘선언
Function IsSwitchPresent ( _
iSwitchIndex As Integer _
) As Integer
‘사용 방법
Dim instance As IVsParseCommandLine
Dim iSwitchIndex As Integer
Dim returnValue As Integer
returnValue = instance.IsSwitchPresent(iSwitchIndex)
int IsSwitchPresent(
int iSwitchIndex
)
int IsSwitchPresent(
[InAttribute] int iSwitchIndex
)
abstract IsSwitchPresent :
iSwitchIndex:int -> int
function IsSwitchPresent(
iSwitchIndex : int
) : int
Parameters
- iSwitchIndex
Type: System.Int32
[in] Index of the switch to test.
Return Value
Type: System.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
- 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.