Struct Fallback
Manages the built-in fallback policies.
Namespace: Umbraco.Cms.Core.Models.PublishedContent
Assembly: Umbraco.Core.dll
Syntax
public struct FallbackFields
View SourceAncestors
Fallback to tree ancestors.
Declaration
public const int Ancestors = 3Field Value
| Type | Description | 
|---|---|
| System.Int32 | 
DefaultLanguage
Fallback to the default language.
Declaration
public const int DefaultLanguage = 4Field Value
| Type | Description | 
|---|---|
| System.Int32 | 
DefaultValue
Fallback to the default value.
Declaration
public const int DefaultValue = 1Field Value
| Type | Description | 
|---|---|
| System.Int32 | 
Language
Fallback to other languages.
Declaration
public const int Language = 2Field Value
| Type | Description | 
|---|---|
| System.Int32 | 
None
Do not fallback.
Declaration
public const int None = 0Field Value
| Type | Description | 
|---|---|
| System.Int32 | 
Properties
View SourceToAncestors
Gets the fallback to tree ancestors policy.
Declaration
public static readonly Fallback ToAncestors { get; }Property Value
| Type | Description | 
|---|---|
| Fallback | The tree ancestors fallback policy. | 
ToDefaultLanguage
Gets the fallback to the default language policy.
Declaration
public static readonly Fallback ToDefaultLanguage { get; }Property Value
| Type | Description | 
|---|---|
| Fallback | The default language fallback policy. | 
ToDefaultValue
Gets the fallback to the default value policy.
Declaration
public static readonly Fallback ToDefaultValue { get; }Property Value
| Type | Description | 
|---|---|
| Fallback | The default value fallback policy. | 
ToLanguage
Gets the fallback to language policy.
Declaration
public static readonly Fallback ToLanguage { get; }Property Value
| Type | Description | 
|---|---|
| Fallback | The language fallback policy. | 
Methods
View SourceGetEnumerator()
Declaration
public IEnumerator<int> GetEnumerator()Returns
| Type | Description | 
|---|---|
| System.Collections.IEnumerator<System.Int32> | 
To(Int32[])
Gets an ordered set of fallback policies.
Declaration
public static Fallback To(params int[] values)Parameters
| Type | Name | Description | 
|---|---|---|
| System.Int32[] | values | The values. | 
Returns
| Type | Description | 
|---|---|
| Fallback | The fallback policy. |