为给定上下文创建完成提供程序。
命名空间: Microsoft.VisualStudio.Language.Intellisense
程序集: Microsoft.VisualStudio.Language.Intellisense(在 Microsoft.VisualStudio.Language.Intellisense.dll 中)
语法
声明
Function TryCreateCompletionSource ( _
textBuffer As ITextBuffer _
) As ICompletionSource
ICompletionSource TryCreateCompletionSource(
ITextBuffer textBuffer
)
ICompletionSource^ TryCreateCompletionSource(
ITextBuffer^ textBuffer
)
abstract TryCreateCompletionSource :
textBuffer:ITextBuffer -> ICompletionSource
function TryCreateCompletionSource(
textBuffer : ITextBuffer
) : ICompletionSource
参数
textBuffer
类型:Microsoft.VisualStudio.Text.ITextBuffer要为其创建提供程序的文本缓冲区。
返回值
类型:Microsoft.VisualStudio.Language.Intellisense.ICompletionSource
有效的 ICompletionSource 实例或 nullnull 引用(在 Visual Basic 中为 Nothing) 的行,则无法创建。
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关详细信息,请参阅通过部分受信任的代码使用库。