docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class RoleExtensions

    Helper methods for IEnumerable<T>.

    Inheritance
    object
    RoleExtensions
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    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
    In This Article
    Back to top
    Copyright © 2024 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)