初始化 SmartTag 的新实例。
命名空间: Microsoft.VisualStudio.Language.Intellisense
程序集: Microsoft.VisualStudio.Language.Intellisense(在 Microsoft.VisualStudio.Language.Intellisense.dll 中)
语法
声明
Public Sub New ( _
smartTagType As SmartTagType, _
actionSets As ReadOnlyCollection(Of SmartTagActionSet) _
)
public SmartTag(
SmartTagType smartTagType,
ReadOnlyCollection<SmartTagActionSet> actionSets
)
public:
SmartTag(
SmartTagType smartTagType,
ReadOnlyCollection<SmartTagActionSet^>^ actionSets
)
new :
smartTagType:SmartTagType *
actionSets:ReadOnlyCollection<SmartTagActionSet> -> SmartTag
public function SmartTag(
smartTagType : SmartTagType,
actionSets : ReadOnlyCollection<SmartTagActionSet>
)
参数
smartTagType
类型:Microsoft.VisualStudio.Language.Intellisense.SmartTagType应创建的智能标记会话的类型。
actionSets
类型:ReadOnlyCollection<SmartTagActionSet>应属于智能标记会话的操作的集合。
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关详细信息,请参阅通过部分受信任的代码使用库。