Table of Contents

Class EnvironmentPermissionOptions

Namespace
ToSic.Eav.Environment.Sys.Permissions
Assembly
ToSic.Eav.Context.dll

Options to be used when setting up ToSic.Sys.Security.Permissions.IEnvironmentPermission.

[InternalApi_DoNotUse_MayChangeWithoutNotice]
public record EnvironmentPermissionOptions : EnvironmentPermissionOptionsBase, IEquatable<EnvironmentPermissionOptionsBase>, IEquatable<EnvironmentPermissionOptions>
Inheritance
object
EnvironmentPermissionOptionsBase
EnvironmentPermissionOptions
Implements
IEquatable<EnvironmentPermissionOptionsBase>

Constructors

EnvironmentPermissionOptions(IContextOfSite, IAppIdentity?)

Options to be used when setting up ToSic.Sys.Security.Permissions.IEnvironmentPermission.

public EnvironmentPermissionOptions(IContextOfSite ContextOfSiteOrBlock, IAppIdentity? AppIdentityOrNull)

Parameters

ContextOfSiteOrBlock IContextOfSite

Context information of site, or also of block if possible. Required.

AppIdentityOrNull IAppIdentity

Current app identity - if available

Properties

AppIdentityOrNull

Current app identity - if available

public IAppIdentity? AppIdentityOrNull { get; init; }

Property Value

IAppIdentity

ContextOfSiteOrBlock

public IContextOfSite ContextOfSiteOrBlock { get; init; }

Property Value

IContextOfSite

Site

public ISite Site { get; }

Property Value

ISite

User

public IUser User { get; }

Property Value

IUser