IVsParseCommandLine::GetSwitchCount Method (Int32)

 

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)

int GetSwitchCount(
	[OutAttribute] int% piSwitchCount
)

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.

From vsshell.idl:

HRESULT IVsParseCommandLine::GetSwitchCount(
   [out, retval] int* piSwitchCount
);
Return to top
Show: