Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

SecurityRoleAttribute Constructor (String^)

 

Initializes a new instance of the SecurityRoleAttribute class and sets the Role property.

Namespace:   System.EnterpriseServices
Assembly:  System.EnterpriseServices (in System.EnterpriseServices.dll)

public:
SecurityRoleAttribute(
	String^ role
)

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.

// Create a security role for the component.
[assembly:SecurityRole("Manager")];

.NET Framework
Available since 1.1
Return to top
Show:
© 2017 Microsoft