IVsParseCommandLine.ParseCommandLine(String, Int32, Int32) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
分析命令行,以准备使用其他接口方法检索已分析的元素。
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
参数
- szCommandLine
- String
中包含要分析的命令行的字符串。
- iMaxParams
- Int32
中整数-最大参数数目。
- iCursorPos
- Int32
中整数. 开始分析命令行的字符位置。
返回
如果该方法成功,则它会返回 S_OK。 如果该方法失败,则会返回错误代码。
注解
COM 签名
从 vsshell:
HRESULT IVsParseCommandLine::ParseCommandLine(
[in, ref] LPCOLESTR szCommandLine,
[in] int iMaxParams,
[in] int iCursorPos
);