APNSoft Controls [4.5.2.20] - API Reference
APNSoftMenu.Roles Property

Gets or sets the roles the current user belongs to. User roles provide developers with an easy and flexible way to control access to various menu elements. Menu can be assigned to multiple roles.

[Visual Basic]
Public Property Roles As String
[C#]
public string Roles {get; set;}

Example

[C#]
myMenu.Roles = "Admins";
or:
myMenu.Roles = "Admins,Users";

[Visual Basic]
myMenu.Roles = "Admins"
or:
myMenu.Roles = "Admins,Users"

See Also

APNSoftMenu Class | APNSoft.WebControls Namespace