AuthorizationRule.Roles Property

 

Gets the roles associated with the resource.

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

[<ConfigurationPropertyAttribute("roles")>]
[<TypeConverterAttribute(typeof(CommaDelimitedStringCollectionConverter))>]
member Roles : StringCollection with get

Property Value

Type: System.Collections.Specialized.StringCollection

A StringCollection collection containing the roles whose authorization must be verified.

The Roles property is a list of roles that are granted or denied access to the resource. There must be at least one value in either the Users property collection or the Roles property collection, or both.

The following code example shows how to use this property.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 2.0
Return to top
Show: