Partager via


TextViewRoleAttribute Constructor

Construct a new instance of the attribute.

Namespace:  Microsoft.VisualStudio.Text.Editor
Assembly:  Microsoft.VisualStudio.Text.UI (in Microsoft.VisualStudio.Text.UI.dll)

Syntax

'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
)

Parameters

  • role
    Type: System.String
    The case-insensitive name of the role.

Exceptions

Exception Condition
ArgumentNullException

role is nulla null reference (Nothing in Visual Basic) or empty.

.NET Framework Security

See Also

Reference

TextViewRoleAttribute Class

Microsoft.VisualStudio.Text.Editor Namespace