Share via


IVsParseCommandLine.ParseCommandLine(String, Int32, Int32) Method

Definition

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

public:
 int ParseCommandLine(System::String ^ szCommandLine, int iMaxParams, int iCursorPos);
public:
 int ParseCommandLine(Platform::String ^ szCommandLine, int iMaxParams, int iCursorPos);
int ParseCommandLine(std::wstring const & szCommandLine, int iMaxParams, int iCursorPos);
public int ParseCommandLine (string szCommandLine, int iMaxParams, int iCursorPos);
abstract member ParseCommandLine : string * int * int -> int
Public Function ParseCommandLine (szCommandLine As String, iMaxParams As Integer, iCursorPos As Integer) As Integer

Parameters

szCommandLine
String

[in] String containing the command line to parse.

iMaxParams
Int32

[in] Integer—the maximum number of parameters.

iCursorPos
Int32

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

Returns

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

Remarks

COM Signature

From vsshell.idl:

HRESULT IVsParseCommandLine::ParseCommandLine(

[in, ref] LPCOLESTR szCommandLine,

[in] int iMaxParams,

[in] int iCursorPos

);

Applies to