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 SourceIsSystemUserGroup(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 |
|
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 |
|
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. |