Class RoleExtensions
Helper methods for IEnumerable<T>.
Inherited Members
Namespace: Unity.Cloud.Identity
Assembly: Unity.Cloud.Identity.dll
Syntax
public static class RoleExtensions
Methods
HasRole(IEnumerable<Role>, Role)
Return if an IEnumerable<T> contains any Unity.Cloud.Common.Role.
Declaration
public static bool HasRole(this IEnumerable<Role> roles, Role role)
Parameters
Type | Name | Description |
---|---|---|
IEnumerable<Role> | roles | An IEnumerable<T>. |
Role | role | The Unity.Cloud.Common.Role to look for. |
Returns
Type | Description |
---|---|
bool |