Specifies membership in a given security role.
[Visual Basic] Public Property Role As String [C#] public string Role {get; set;} [C++] public: __property String* get_Role(); public: __property void set_Role(String*); [JScript] public function get Role() : String; public function set Role(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 become synonymous with NT user groups. Check the documentation of your host to determine what authentication provider it uses and, therefore, what roles users may belong to.
PrincipalPermissionAttribute Class | PrincipalPermissionAttribute Members | System.Security.Permissions Namespace