Partager via


IVsParseCommandLine.GetParamCount Method

Gets the number of command line parameters.

Namespace:  Microsoft.VisualStudio.Shell.Interop
Assembly:  Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)

Syntax

'Declaration
Function GetParamCount ( _
    <OutAttribute> ByRef piParamCount As Integer _
) As Integer
int GetParamCount(
    out int piParamCount
)
int GetParamCount(
    [OutAttribute] int% piParamCount
)
abstract GetParamCount : 
        piParamCount:int byref -> int
function GetParamCount(
    piParamCount : int
) : int

Parameters

  • piParamCount
    Type: Int32%

    [out] Pointer to an integer containing the parameter count.

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::GetParamCount(
   [out, retval] int* piParamCount
);

.NET Framework Security

See Also

Reference

IVsParseCommandLine Interface

Microsoft.VisualStudio.Shell.Interop Namespace