IVsParseCommandLine.GetACParam(Int32, Int32, Int32, String) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
检索自动完成命令行项。
public:
int GetACParam([Runtime::InteropServices::Out] int % piACIndex, [Runtime::InteropServices::Out] int % piACStart, [Runtime::InteropServices::Out] int % pcchACLength, [Runtime::InteropServices::Out] System::String ^ % pbstrACParam);
int GetACParam([Runtime::InteropServices::Out] int & piACIndex, [Runtime::InteropServices::Out] int & piACStart, [Runtime::InteropServices::Out] int & pcchACLength, [Runtime::InteropServices::Out] std::wstring const & & pbstrACParam);
public int GetACParam (out int piACIndex, out int piACStart, out int pcchACLength, out string pbstrACParam);
abstract member GetACParam : int * int * int * string -> int
Public Function GetACParam (ByRef piACIndex As Integer, ByRef piACStart As Integer, ByRef pcchACLength As Integer, ByRef pbstrACParam As String) As Integer
参数
- piACIndex
- Int32
弄一个指向索引的指针,该索引指示是否存在自动完成项。 如果有自动完成项,则设置为 PCL_AUTO_COMMANDS。
- piACStart
- Int32
弄指向命令行缓冲区中自动完成项的开头的指针。
- pcchACLength
- Int32
弄指向自动完成项的长度的指针。
- pbstrACParam
- String
弄指向包含当前自动完成参数的字符串的指针。
返回
如果该方法成功,则它会返回 S_OK。 如果该方法失败,则会返回错误代码。
注解
COM 签名
从 vsshell:
HRESULT IVsParseCommandLine::GetACParam(
[out] int* piACIndex,
[out] int* piACStart,
[out] int* pcchACLength,
[out, retval] BSTR* pbstrACParam
);