共用方式為


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 安全性

請參閱

參考

TagTypeAttribute 類別

Microsoft.VisualStudio.Text.Tagging 命名空間