Search Results for

    Show / Hide Table of Contents
    View Source

    Class UserGroupExtensions

    Provides extension methods for IUserGroup and IReadOnlyUserGroup.

    Inheritance
    object
    Namespace: Umbraco.Extensions
    Assembly: Umbraco.Core.dll
    Syntax
    public static class UserGroupExtensions

    Methods

    View Source

    IsSystemUserGroup(IReadOnlyUserGroup)

    Determines whether the specified read-only user group is a system user group.

    Declaration
    public static bool IsSystemUserGroup(this IReadOnlyUserGroup group)
    Parameters
    Type Name Description
    IReadOnlyUserGroup group

    The user group to check.

    Returns
    Type Description
    bool

    true if the user group is a system user group; otherwise, false.

    View Source

    IsSystemUserGroup(IUserGroup)

    Determines whether the specified user group is a system user group.

    Declaration
    public static bool IsSystemUserGroup(this IUserGroup group)
    Parameters
    Type Name Description
    IUserGroup group

    The user group to check.

    Returns
    Type Description
    bool

    true if the user group is a system user group; otherwise, false.

    View Source

    ToReadOnlyGroup(IUserGroup)

    Converts an IUserGroup to an IReadOnlyUserGroup.

    Declaration
    public static IReadOnlyUserGroup ToReadOnlyGroup(this IUserGroup group)
    Parameters
    Type Name Description
    IUserGroup group

    The user group to convert.

    Returns
    Type Description
    IReadOnlyUserGroup

    A read-only representation of the user group.

    • View Source
    In this article
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX