IVsParseCommandLine2.GetACParamOrSwitch 方法

定义

检索自动完成命令行项或开关。

public:
 int GetACParamOrSwitch([Runtime::InteropServices::Out] int % piACIndex, [Runtime::InteropServices::Out] int % piACStart, [Runtime::InteropServices::Out] int % pcchACLength, [Runtime::InteropServices::Out] System::String ^ % pbstrCurSwitch, [Runtime::InteropServices::Out] System::String ^ % pbstrACParam);
int GetACParamOrSwitch([Runtime::InteropServices::Out] int & piACIndex, [Runtime::InteropServices::Out] int & piACStart, [Runtime::InteropServices::Out] int & pcchACLength, [Runtime::InteropServices::Out] std::wstring const & & pbstrCurSwitch, [Runtime::InteropServices::Out] std::wstring const & & pbstrACParam);
public int GetACParamOrSwitch (out int piACIndex, out int piACStart, out int pcchACLength, out string pbstrCurSwitch, out string pbstrACParam);
abstract member GetACParamOrSwitch : int * int * int * string * string -> int
Public Function GetACParamOrSwitch (ByRef piACIndex As Integer, ByRef piACStart As Integer, ByRef pcchACLength As Integer, ByRef pbstrCurSwitch As String, ByRef pbstrACParam As String) As Integer

参数

piACIndex
Int32

弄一个指向索引的指针,该索引指示是否存在自动完成项。 如果有自动完成项,则设置为 PCL_AUTO_COMMANDS。

piACStart
Int32

弄指向命令行缓冲区中自动完成项的开头的指针。

pcchACLength
Int32

弄指向自动完成项的长度的指针。

pbstrCurSwitch
String

弄指向包含当前开关的字符串的指针。

pbstrACParam
String

弄指向包含当前自动完成参数的字符串的指针。

返回

Int32

如果该方法成功,则它会返回 S_OK。 如果该方法失败,则会返回错误代码。

注解

COM 签名

从 vsshell80:

HRESULT IVsParseCommandLine2::GetACParamOrSwitch(  
   [out] int* piACIndex,   
   [out] int* piACStart,   
   [out] int* pcchACLength,   
   [out] BSTR* pbstrCurSwitch,   
   [out, retval] BSTR* pbstrACParam  
);  

适用于