SmartTag 建構函式
初始化 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 安全性
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱從部分受信任程式碼使用程式庫。