Class UserPermissionResource
A resource used for the
Inheritance
System.Object
Namespace: Umbraco.Cms.Core.Security.Authorization
Assembly: Umbraco.Core.dll
Syntax
public class UserPermissionResource : IPermissionResource
Properties
View SourceUserKeys
Gets the user keys.
Declaration
public IEnumerable<Guid> UserKeys { get; }
Property Value
| Type | Description |
|---|---|
| IEnumerable<Guid> |
Methods
View SourceWithKeys(Guid)
Creates a UserPermissionResource with the specified keys.
Declaration
public static UserPermissionResource WithKeys(Guid userKey)
Parameters
| Type | Name | Description |
|---|---|---|
| Guid | userKey | The key of the user. |
Returns
| Type | Description |
|---|---|
| UserPermissionResource | An instance of UserPermissionResource. |
WithKeys(IEnumerable<Guid>)
Creates a UserPermissionResource with the specified keys.
Declaration
public static UserPermissionResource WithKeys(IEnumerable<Guid> userKeys)
Parameters
| Type | Name | Description |
|---|---|---|
| IEnumerable<Guid> | userKeys | The keys of the users. |
Returns
| Type | Description |
|---|---|
| UserPermissionResource | An instance of UserPermissionResource. |