SecurityRoleAttribute Constructor (String^)
.NET Framework (current version)
Initializes a new instance of the SecurityRoleAttribute class and sets the Role property.
Assembly: System.EnterpriseServices (in System.EnterpriseServices.dll)
Parameters
- role
-
Type:
System::String^
A security role for the application, component, interface, or method.
The following code example demonstrates the use of this attribute to associate a role with an assembly that contains ServicedComponent classes.
.NET Framework
Available since 1.1
Available since 1.1
Show: