Search Results for

    Show / Hide Table of Contents
    View Source

    Struct Fallback

    Manages the built-in fallback policies.

    Namespace: Umbraco.Cms.Core.Models.PublishedContent
    Assembly: Umbraco.Core.dll
    Syntax
    public struct Fallback

    Fields

    View Source

    Ancestors

    Fallback to tree ancestors.

    Declaration
    public const int Ancestors = 3
    Field Value
    Type Description
    System.Int32
    View Source

    DefaultLanguage

    Fallback to the default language.

    Declaration
    public const int DefaultLanguage = 4
    Field Value
    Type Description
    System.Int32
    View Source

    DefaultValue

    Fallback to the 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

    Do not fallback.

    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
    Type Description
    Fallback

    The tree ancestors fallback policy.

    View Source

    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.

    View Source

    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.

    View Source

    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 Source

    GetEnumerator()

    Declaration
    public IEnumerator<int> GetEnumerator()
    Returns
    Type Description
    System.Collections.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

    The values.

    Returns
    Type Description
    Fallback

    The fallback policy.

    • Improve this Doc
    • View Source
    In This Article
    • Fields
      • Ancestors
      • DefaultLanguage
      • DefaultValue
      • Language
      • None
    • Properties
      • ToAncestors
      • ToDefaultLanguage
      • ToDefaultValue
      • ToLanguage
    • Methods
      • GetEnumerator()
      • To(Int32[])
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX