This documentation is archived and is not being maintained.

IVsParseCommandLine.ParseCommandLine Method

Parses the command line as preparation for using other interface methods to retrieve the parsed elements.

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

int ParseCommandLine (
	[InAttribute] string szCommandLine,
	[InAttribute] int iMaxParams,
	[InAttribute] int iCursorPos
int ParseCommandLine (
	/** @attribute InAttribute() */ String szCommandLine, 
	/** @attribute InAttribute() */ int iMaxParams, 
	/** @attribute InAttribute() */ int iCursorPos
function ParseCommandLine (
	szCommandLine : String, 
	iMaxParams : int, 
	iCursorPos : int
) : int



[in] String containing the command line to parse.


[in] Integer—the maximum number of parameters.


[in] Integer. The character position to begin parsing of the command line.

Return Value

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

COM Signature

From vsshell.idl:

HRESULT IVsParseCommandLine::ParseCommandLine(

   [in, ref] LPCOLESTR szCommandLine,

   [in] int iMaxParams,

   [in] int iCursorPos