View Source
Class ReadOnlyUserGroup
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
Declaration
public string Alias { get; }
Property Value
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
View Source
HasAccessToAllLanguages
Declaration
public bool HasAccessToAllLanguages { get; set; }
Property Value
View Source
Icon
Declaration
public string? Icon { get; }
Property Value
View Source
Id
Declaration
Property Value
View Source
Key
Declaration
Property Value
View Source
Name
Declaration
public string Name { get; }
Property Value
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
View Source
Declaration
public int? StartMediaId { get; }
Property Value
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
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
Returns
View Source
operator !=(ReadOnlyUserGroup, ReadOnlyUserGroup)
Declaration
public static bool operator !=(ReadOnlyUserGroup left, ReadOnlyUserGroup right)
Parameters
Returns