确定 CompletionSet应是指定的 ICompletionSession的一部分。
命名空间: Microsoft.VisualStudio.Language.Intellisense
程序集: Microsoft.VisualStudio.Language.Intellisense(在 Microsoft.VisualStudio.Language.Intellisense.dll 中)
语法
声明
Sub AugmentCompletionSession ( _
session As ICompletionSession, _
completionSets As IList(Of CompletionSet) _
)
void AugmentCompletionSession(
ICompletionSession session,
IList<CompletionSet> completionSets
)
void AugmentCompletionSession(
ICompletionSession^ session,
IList<CompletionSet^>^ completionSets
)
abstract AugmentCompletionSession :
session:ICompletionSession *
completionSets:IList<CompletionSet> -> unit
function AugmentCompletionSession(
session : ICompletionSession,
completionSets : IList<CompletionSet>
)
参数
session
类型:Microsoft.VisualStudio.Language.Intellisense.ICompletionSession要对其计算完成项的会话。
completionSets
类型:IList<CompletionSet>设置要添加的 CompletionSet 对象到会话。
备注
每个适用的 AugmentCompletionSession 实例将调用来 (有关) 计算 ICompletionSession。 CompletionSet的可添加到该会话通过向通过在作为参数的 completionSets 集合。 此外,通过移除项从集合,源可以筛选在计算链中 ICompletionSource的提供的 CompletionSet的之前。
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关详细信息,请参阅通过部分受信任的代码使用库。