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
'宣言
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
)
function GetParamCount(
piParamCount : int
) : int
Parameters
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.
Remarks
COM Signature
From vsshell.idl:
HRESULT IVsParseCommandLine::GetParamCount(
[out, retval] int* piParamCount
);
Permissions
- 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.