Search Results for

    Show / Hide Table of Contents
    View Source

    Struct ContentAndSettingsReference

    Namespace: Umbraco.Cms.Core.Models.Blocks
    Assembly: Umbraco.Core.dll
    Syntax
    public struct ContentAndSettingsReference

    Constructors

    View Source

    ContentAndSettingsReference(Guid, Guid?)

    Declaration
    public ContentAndSettingsReference(Guid contentKey, Guid? settingsKey)
    Parameters
    Type Name Description
    Guid contentKey
    Guid? settingsKey
    View Source

    ContentAndSettingsReference(Udi?, Udi?)

    Declaration
    [Obsolete("Use constructor that accepts GUIDs instead. Will be removed in V18.")]
    public ContentAndSettingsReference(Udi? contentUdi, Udi? settingsUdi)
    Parameters
    Type Name Description
    Udi contentUdi
    Udi settingsUdi

    Properties

    View Source

    ContentKey

    Declaration
    public Guid ContentKey { readonly get; set; }
    Property Value
    Type Description
    Guid
    View Source

    ContentUdi

    Declaration
    [Obsolete("Use ContentKey instead. Will be removed in V18.")]
    public readonly Udi ContentUdi { get; }
    Property Value
    Type Description
    Udi
    View Source

    SettingsKey

    Declaration
    public Guid? SettingsKey { readonly get; set; }
    Property Value
    Type Description
    Guid?
    View Source

    SettingsUdi

    Declaration
    [Obsolete("Use SettingsKey instead. Will be removed in V18.")]
    public readonly Udi? SettingsUdi { get; }
    Property Value
    Type Description
    Udi

    Methods

    View Source

    Equals(object?)

    Indicates whether this instance and a specified object are equal.

    Declaration
    public override bool Equals(object? obj)
    Parameters
    Type Name Description
    object obj

    The object to compare with the current instance.

    Returns
    Type Description
    bool

    true if obj and this instance are the same type and represent the same value; otherwise, false.

    View Source

    Equals(ContentAndSettingsReference)

    Indicates whether the current object is equal to another object of the same type.

    Declaration
    public bool Equals(ContentAndSettingsReference other)
    Parameters
    Type Name Description
    ContentAndSettingsReference other

    An object to compare with this object.

    Returns
    Type Description
    bool

    true if the current object is equal to the other parameter; otherwise, false.

    View Source

    GetHashCode()

    Returns the hash code for this instance.

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    int

    A 32-bit signed integer that is the hash code for this instance.

    Operators

    View Source

    operator ==(ContentAndSettingsReference, ContentAndSettingsReference)

    Declaration
    public static bool operator ==(ContentAndSettingsReference left, ContentAndSettingsReference right)
    Parameters
    Type Name Description
    ContentAndSettingsReference left
    ContentAndSettingsReference right
    Returns
    Type Description
    bool
    View Source

    operator !=(ContentAndSettingsReference, ContentAndSettingsReference)

    Declaration
    public static bool operator !=(ContentAndSettingsReference left, ContentAndSettingsReference right)
    Parameters
    Type Name Description
    ContentAndSettingsReference left
    ContentAndSettingsReference right
    Returns
    Type Description
    bool
    • Edit this page
    • View Source
    In this article
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX