Visual Guard Class Library Documentation

VGPermissionsLoadingEventArgs.Roles Property

Gets or sets the list of VGGrantedRole corresponding to roles granted to the user.

public VGGrantedRole[] Roles {get; set;}

Remarks

if the value is an empty array, Status is automatically set to UserNotAuthorized

Exceptions

Exception TypeCondition
ArgumentNullExceptionthe value cannot be a null reference.
ArgumentExceptioneach role must already exist in the initial list.

See Also

VGPermissionsLoadingEventArgs Class | Novalys.VisualGuard.Security Namespace