PrincipalPermissionAttribute.Role Property

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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: