Click or drag to resize

OperationArgumentExtensionsGetUserRoles Method

Returns roles available for the user.

Namespace:  Resto.Front.Api
Assembly:  Resto.Front.Api.V7 (in Resto.Front.Api.V7.dll)
Syntax
C#
public static IReadOnlyList<IRole> GetUserRoles(
	this IUser user
)

Parameters

user
Type: Resto.Front.Api.Data.SecurityIUser
User to get his roles.

Return Value

Type: IReadOnlyListIRole

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IUser. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also