PrincipalPermissionAttribute.Role Property

 

Gets or sets membership in a specified security role.

Namespace:   System.Security.Permissions
Assembly:  mscorlib (in mscorlib.dll)

public string Role { get; set; }

Property Value

Type: System.String

The name of a role from the underlying role-based security provider.

The available roles will differ based on the authentication provider in use by the host. If the authentication provider is Windows NT, roles are Windows NT user groups (in the form "DomainName\GroupName"). Check the documentation of your host to determine which authentication provider it uses and what roles users can belong to.

.NET Framework
Available since 1.1
Return to top
Show: