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
'Declaration
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.StringThe case-insensitive name of the role.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | role is nulla null reference (Nothing in Visual Basic) or empty. |
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.