Partilhar via


Construtor TagTypeAttribute

Inicializa uma nova instância de um TagTypeAttribute.

Namespace:  Microsoft.VisualStudio.Text.Tagging
Assembly:  Microsoft.VisualStudio.Text.Logic (em Microsoft.VisualStudio.Text.Logic.dll)

Sintaxe

'Declaração
Public Sub New ( _
    tagType As Type _
)
public TagTypeAttribute(
    Type tagType
)
public:
TagTypeAttribute(
    Type^ tagType
)
new : 
        tagType:Type -> TagTypeAttribute
public function TagTypeAttribute(
    tagType : Type
)

Parâmetros

  • tagType
    Tipo: Type

    O tipo de marca, que deve derivar de ITag.

Exceções

Exceção Condição
ArgumentNullException

tagType é nulluma referência nula (Nothing no Visual Basic).

ArgumentException

tagTypenão é derivada de ITag.

Segurança do .NET Framework

Consulte também

Referência

TagTypeAttribute Classe

Namespace Microsoft.VisualStudio.Text.Tagging