RoleGroup.Roles Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈