TagTypeAttribute 建構函式
初始化 TagTypeAttribute 的新執行個體。
命名空間: Microsoft.VisualStudio.Text.Tagging
組件: Microsoft.VisualStudio.Text.Logic (在 Microsoft.VisualStudio.Text.Logic.dll 中)
語法
'宣告
Public Sub New ( _
tagType As Type _
)
public TagTypeAttribute(
Type tagType
)
public:
TagTypeAttribute(
Type^ tagType
)
new :
tagType:Type -> TagTypeAttribute
public function TagTypeAttribute(
tagType : Type
)
參數
tagType
類型:Type必須衍生自 ITag 的標籤型別。
例外狀況
例外狀況 | 條件 |
---|---|
ArgumentNullException | tagType 為 nullnull 參考 (即 Visual Basic 中的 Nothing)。 |
ArgumentException | tagType 不是從 ITag 衍生。 |
.NET Framework 安全性
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱從部分受信任程式碼使用程式庫。