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)


Function GetParamCount ( _
    <OutAttribute> ByRef piParamCount As Integer _
) As Integer
‘사용 방법
Dim instance As IVsParseCommandLine
Dim piParamCount As Integer
Dim returnValue As Integer

returnValue = instance.GetParamCount(piParamCount)
int GetParamCount(
    out int piParamCount
int GetParamCount(
    [OutAttribute] int% piParamCount
abstract GetParamCount : 
        piParamCount:int byref -> int 
function GetParamCount(
    piParamCount : int
) : int


  • piParamCount
    Type: System.Int32%
    [out] Pointer to an integer containing the parameter count.

Return Value

Type: System.Int32
If the method succeeds, it returns S_OK. If it fails, it returns an error code.


COM Signature

From vsshell.idl:

HRESULT IVsParseCommandLine::GetParamCount(
   [out, retval] int* piParamCount

.NET Framework Security

See Also


IVsParseCommandLine Interface

IVsParseCommandLine Members

Microsoft.VisualStudio.Shell.Interop Namespace