AuthorizeAttribute.Roles Property

Gets or sets the user roles.

Namespace:  System.Web.Mvc
Assembly:  System.Web.Mvc (in System.Web.Mvc.dll)

'Declaration
Public Property Roles As String 
	Get 
	Set
'Usage
Dim instance As AuthorizeAttribute 
Dim value As String 

value = instance.Roles

instance.Roles = value

Property Value

Type: System.String
The user roles.

User roles are used to check authorization in an ASP.NET MVC application. A role defines privileges that are available to users who are assigned to that role. Users can belong to more than one role.

This property manages the roles that are authorized to access the associated controller or action method.

Show: