編輯

共用方式為


RoleGroup.Roles Property

Definition

Gets or sets the roles associated with this role group.

public:
 property cli::array <System::String ^> ^ Roles { cli::array <System::String ^> ^ get(); void set(cli::array <System::String ^> ^ value); };
[System.ComponentModel.TypeConverter(typeof(System.Web.UI.WebControls.StringArrayConverter))]
public string[] Roles { get; set; }
[<System.ComponentModel.TypeConverter(typeof(System.Web.UI.WebControls.StringArrayConverter))>]
member this.Roles : string[] with get, set
Public Property Roles As String()

Property Value

String[]

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

Attributes

Examples

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;
Dim RoleList(1) As String
RoleList(0) = "users"

Applies to