IVsParseCommandLine.GetSwitchCount Method
Returns the number of switches in the command line.
Namespace: Microsoft.VisualStudio.Shell.Interop
Assembly: Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)
Syntax
'Declaration
Function GetSwitchCount ( _
<OutAttribute> ByRef piSwitchCount As Integer _
) As Integer
int GetSwitchCount(
out int piSwitchCount
)
int GetSwitchCount(
[OutAttribute] int% piSwitchCount
)
abstract GetSwitchCount :
piSwitchCount:int byref -> int
function GetSwitchCount(
piSwitchCount : int
) : int
Parameters
- piSwitchCount
Type: System.Int32%
[out] Pointer to an integer containing the number of switches.
Return Value
Type: System.Int32
If the method succeeds, it returns S_OK. If it fails, it returns an error code.
Remarks
COM Signature
From vsshell.idl:
HRESULT IVsParseCommandLine::GetSwitchCount(
[out, retval] int* piSwitchCount
);
.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.