设置控件来显示列表中的 IntelliSense 宿主。
命名空间: Microsoft.VisualStudio.TextManager.Interop
程序集: Microsoft.VisualStudio.TextManager.Interop.8.0(在 Microsoft.VisualStudio.TextManager.Interop.8.0.dll 中)
语法
声明
Function SetIntellisenseHost ( _
pHost As IVsIntellisenseHost _
) As Integer
int SetIntellisenseHost(
IVsIntellisenseHost pHost
)
int SetIntellisenseHost(
[InAttribute] IVsIntellisenseHost^ pHost
)
abstract SetIntellisenseHost :
pHost:IVsIntellisenseHost -> int
function SetIntellisenseHost(
pHost : IVsIntellisenseHost
) : int
参数
pHost
类型:Microsoft.VisualStudio.TextManager.Interop.IVsIntellisenseHost[in] 表示演示完成的 IntelliSense 宿主的 IVsIntellisenseHost 对象的列表。
返回值
类型:Int32
如果成功,则返回; S_OK否则,返回错误代码。
备注
COM 签名
从 singlefileeditor.idl:
HRESULT IVsExternalCompletionSet::SetIntellisenseHost(
[in] IVsIntellisenseHost *pHost
);
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关详细信息,请参阅通过部分受信任的代码使用库。