Table of Contents

Class DimensionDefinition

Namespace
ToSic.Eav.Data.Sys.Dimensions
Assembly
ToSic.Eav.Data.dll

The definition of a dimension / language.

[InternalApi_DoNotUse_MayChangeWithoutNotice]
public record DimensionDefinition : IEquatable<DimensionDefinition>
Inheritance
object
DimensionDefinition
Implements

Properties

Active

If this dimension is active.

public required bool Active { get; init; }

Property Value

bool

Key

The key/id, in case of a language this would be something like "en" or "en-us".

public required string Key { get; init; }

Property Value

string

Remarks

It's always lower case

Name

The name - in case of a language this would be something like "English"

public required string Name { get; init; }

Property Value

string

Methods

Matches(string)

Compares two keys to see if they are the same.

public bool Matches(string environmentKey)

Parameters

environmentKey string

Returns

bool