RoleGroup.Roles Właściwość

Definicja

Pobiera lub ustawia role skojarzone z tą grupą ról.

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()

Wartość właściwości

String[]

Rozdzielona przecinkami lista ról skojarzonych z tą grupą ról. Wartość domyślna to null.

Atrybuty

Przykłady

Poniższy przykład kodu przypisuje listę ról do skojarzenia z grupą ról. Ten przykład kodu jest częścią większego przykładu podanego RoleGroup dla klasy.

String[] RoleList = {"users"};
rg.Roles = RoleList;
Dim RoleList(1) As String
RoleList(0) = "users"

Dotyczy