RoleGroup.Roles Property

 

Gets or sets the roles associated with this role group.

Namespace:   System.Web.UI.WebControls
Assembly:  System.Web (in System.Web.dll)

[TypeConverterAttribute(typeof(StringArrayConverter))]
public string[] Roles { get; set; }

Property Value

Type: System.String[]

A comma-separated list of roles associated with this role group. The default is null.

The following code example assigns a list of roles to associate with a role group. This code example is part of a larger example provided for the RoleGroup class.

String[] RoleList = {"users"};
rg.Roles = RoleList;

.NET Framework
Available since 2.0
Return to top
Show: