Compartir a través de


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: Int32%

    [out] Pointer to an integer containing the number of switches.

Return Value

Type: 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

Microsoft.VisualStudio.Shell.Interop Namespace