Partager via


TextViewRoleAttribute, constructeur

Construisez une nouvelle instance de l'attribut.

Espace de noms :  Microsoft.VisualStudio.Text.Editor
Assembly :  Microsoft.VisualStudio.Text.UI (dans Microsoft.VisualStudio.Text.UI.dll)

Syntaxe

'Déclaration
Public Sub New ( _
    role As String _
)
public TextViewRoleAttribute(
    string role
)
public:
TextViewRoleAttribute(
    String^ role
)
new : 
        role:string -> TextViewRoleAttribute
public function TextViewRoleAttribute(
    role : String
)

Paramètres

  • role
    Type : String

    Nom du rôle sans respecter la casse.

Exceptions

Exception Condition
ArgumentNullException

role est nullune référence null (Nothing en Visual Basic) ou vide.

Sécurité .NET Framework

Voir aussi

Référence

TextViewRoleAttribute Classe

Microsoft.VisualStudio.Text.Editor, espace de noms