Share via


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

‘선언
Function GetSwitchCount ( _
    <OutAttribute> ByRef piSwitchCount As Integer _
) As Integer
‘사용 방법
Dim instance As IVsParseCommandLine
Dim piSwitchCount As Integer
Dim returnValue As Integer

returnValue = instance.GetSwitchCount(piSwitchCount)
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

See Also

Reference

IVsParseCommandLine Interface

IVsParseCommandLine Members

Microsoft.VisualStudio.Shell.Interop Namespace