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 Microsoft.VisualStudio.Shell.Interop.dll)


Function ParseCommandLine ( _
    szCommandLine As String, _
    iMaxParams As Integer, _
    iCursorPos As Integer _
) As Integer
‘사용 방법
Dim instance As IVsParseCommandLine
Dim szCommandLine As String
Dim iMaxParams As Integer
Dim iCursorPos As Integer
Dim returnValue As Integer

returnValue = instance.ParseCommandLine(szCommandLine, _
    iMaxParams, iCursorPos)
int ParseCommandLine(
    string szCommandLine,
    int iMaxParams,
    int iCursorPos
int ParseCommandLine(
    [InAttribute] String^ szCommandLine, 
    [InAttribute] int iMaxParams, 
    [InAttribute] int iCursorPos
abstract ParseCommandLine : 
        szCommandLine:string * 
        iMaxParams:int * 
        iCursorPos:int -> int 
function ParseCommandLine(
    szCommandLine : String, 
    iMaxParams : int, 
    iCursorPos : int
) : int


  • szCommandLine
    Type: System.String
    [in] String containing the command line to parse.
  • iMaxParams
    Type: System.Int32
    [in] Integer—the maximum number of parameters.
  • iCursorPos
    Type: System.Int32
    [in] Integer. The character position to begin parsing of the command line.

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::ParseCommandLine(

   [in, ref] LPCOLESTR szCommandLine,

   [in] int iMaxParams,

   [in] int iCursorPos


.NET Framework Security

See Also


IVsParseCommandLine Interface

IVsParseCommandLine Members

Microsoft.VisualStudio.Shell.Interop Namespace