Class ProtectedAccess
Represents protected access information for content in the Delivery API.
Inheritance
object
Namespace: Umbraco.Cms.Core.Models.DeliveryApi
Assembly: Umbraco.Core.dll
Syntax
public sealed class ProtectedAccess
Constructors
View SourceProtectedAccess(Guid?, string[]?)
Initializes a new instance of the ProtectedAccess class.
Declaration
public ProtectedAccess(Guid? memberKey, string[]? memberRoles)
Parameters
| Type | Name | Description |
|---|---|---|
| Guid? | memberKey | The unique identifier of the member who has access. |
| string[] | memberRoles | The member roles that have access. |
Properties
View SourceMemberKey
Gets the unique identifier of the member who has access.
Declaration
public Guid? MemberKey { get; }
Property Value
| Type | Description |
|---|---|
| Guid? |
MemberRoles
Gets the member roles that have access.
Declaration
public string[]? MemberRoles { get; }
Property Value
| Type | Description |
|---|---|
| string[] |
None
Gets a ProtectedAccess instance representing no protection.
Declaration
public static ProtectedAccess None { get; }
Property Value
| Type | Description |
|---|---|
| ProtectedAccess |