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