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