Search Results for

    Show / Hide Table of Contents
    View Source

    Class ReadOnlyUserGroup

    Inheritance
    object
    Namespace: Umbraco.Cms.Core.Models.Membership
    Assembly: Umbraco.Core.dll
    Syntax
    public class ReadOnlyUserGroup : IReadOnlyUserGroup

    Constructors

    View Source

    ReadOnlyUserGroup(int, Guid, string?, string?, int?, int?, string?, IEnumerable<int>, IEnumerable<string>, ISet<string>, ISet<IGranularPermission>, bool)

    Declaration
    public ReadOnlyUserGroup(int id, Guid key, string? name, string? icon, int? startContentId, int? startMediaId, string? alias, IEnumerable<int> allowedLanguages, IEnumerable<string> allowedSections, ISet<string> permissions, ISet<IGranularPermission> granularPermissions, bool hasAccessToAllLanguages)
    Parameters
    Type Name Description
    int id
    Guid key
    string name
    string icon
    int? startContentId
    int? startMediaId
    string alias
    IEnumerable<int> allowedLanguages
    IEnumerable<string> allowedSections
    ISet<string> permissions
    ISet<IGranularPermission> granularPermissions
    bool hasAccessToAllLanguages

    Properties

    View Source

    Alias

    The alias

    Declaration
    public string Alias { get; }
    Property Value
    Type Description
    string
    View Source

    AllowedLanguages

    Declaration
    public IEnumerable<int> AllowedLanguages { get; }
    Property Value
    Type Description
    IEnumerable<int>
    View Source

    AllowedSections

    Declaration
    public IEnumerable<string> AllowedSections { get; }
    Property Value
    Type Description
    IEnumerable<string>
    View Source

    GranularPermissions

    Declaration
    public ISet<IGranularPermission> GranularPermissions { get; }
    Property Value
    Type Description
    ISet<IGranularPermission>
    View Source

    HasAccessToAllLanguages

    Declaration
    public bool HasAccessToAllLanguages { get; set; }
    Property Value
    Type Description
    bool
    View Source

    Icon

    Declaration
    public string? Icon { get; }
    Property Value
    Type Description
    string
    View Source

    Id

    Declaration
    public int Id { get; }
    Property Value
    Type Description
    int
    View Source

    Key

    Declaration
    public Guid Key { get; }
    Property Value
    Type Description
    Guid
    View Source

    Name

    Declaration
    public string Name { get; }
    Property Value
    Type Description
    string
    View Source

    Permissions

    Declaration
    public ISet<string> Permissions { get; }
    Property Value
    Type Description
    ISet<string>
    View Source

    StartContentId

    Declaration
    public int? StartContentId { get; }
    Property Value
    Type Description
    int?
    View Source

    StartMediaId

    Declaration
    public int? StartMediaId { get; }
    Property Value
    Type Description
    int?

    Methods

    View Source

    Equals(object?)

    Determines whether the specified object is equal to the current object.

    Declaration
    public override bool Equals(object? obj)
    Parameters
    Type Name Description
    object obj

    The object to compare with the current object.

    Returns
    Type Description
    bool

    true if the specified object is equal to the current object; otherwise, false.

    View Source

    Equals(ReadOnlyUserGroup?)

    Indicates whether the current object is equal to another object of the same type.

    Declaration
    public bool Equals(ReadOnlyUserGroup? other)
    Parameters
    Type Name Description
    ReadOnlyUserGroup other

    An object to compare with this object.

    Returns
    Type Description
    bool

    true if the current object is equal to the other parameter; otherwise, false.

    View Source

    GetHashCode()

    Serves as the default hash function.

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    int

    A hash code for the current object.

    Operators

    View Source

    operator ==(ReadOnlyUserGroup, ReadOnlyUserGroup)

    Declaration
    public static bool operator ==(ReadOnlyUserGroup left, ReadOnlyUserGroup right)
    Parameters
    Type Name Description
    ReadOnlyUserGroup left
    ReadOnlyUserGroup right
    Returns
    Type Description
    bool
    View Source

    operator !=(ReadOnlyUserGroup, ReadOnlyUserGroup)

    Declaration
    public static bool operator !=(ReadOnlyUserGroup left, ReadOnlyUserGroup right)
    Parameters
    Type Name Description
    ReadOnlyUserGroup left
    ReadOnlyUserGroup right
    Returns
    Type Description
    bool
    • Edit this page
    • View Source
    In this article
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX