检索一个自动完成命令行项目。
命名空间: Microsoft.VisualStudio.Shell.Interop
程序集: Microsoft.VisualStudio.Shell.Interop(在 Microsoft.VisualStudio.Shell.Interop.dll 中)
语法
声明
Function GetACParam ( _
<OutAttribute> ByRef piACIndex As Integer, _
<OutAttribute> ByRef piACStart As Integer, _
<OutAttribute> ByRef pcchACLength As Integer, _
<OutAttribute> ByRef pbstrACParam As String _
) As Integer
int GetACParam(
out int piACIndex,
out int piACStart,
out int pcchACLength,
out string pbstrACParam
)
参数
- piACIndex
类型:System.Int32%
[out] 为指示是否索引的指针具有一个自动完成项。设置为 PCL_AUTO_COMMANDS,如果有一个自动完成项。
- piACStart
类型:System.Int32%
[out] 若要自动完成项的起始的指针在命令行缓冲区的。
- pcchACLength
类型:System.Int32%
[out] 若要自动完成项的长度的指针。
- pbstrACParam
类型:System.String%
[out] 对包含当前自动完成参数的字符串的指针。
返回值
类型:System.Int32
如果方法成功,则返回 S_OK。如果失败,它会返回一个错误代码。
备注
COM 签名
从 vsshell.idl:
HRESULT IVsParseCommandLine::GetACParam(
[out] int* piACIndex,
[out] int* piACStart,
[out] int* pcchACLength,
[out, retval] BSTR* pbstrACParam
);
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关更多信息,请参见通过部分受信任的代码使用库。