Search Results for

    Show / Hide Table of Contents
    View Source

    Class UdiRange

    Represents a Udi range.

    Inheritance
    object
    Namespace: Umbraco.Cms.Core
    Assembly: Umbraco.Core.dll
    Syntax
    public class UdiRange
    Remarks
    A Udi range is composed of a Udi which represents the base of the range, plus a selector that can be "." (the Udi), ".*" (the Udi and its children), ".**" (the udi and its descendants, "*" (the children of the Udi), and "**" (the descendants of the Udi). The Udi here can be a closed entity, or an open entity.

    Constructors

    View Source

    UdiRange(Udi, string)

    Initializes a new instance of the UdiRange class with a Udi and an optional selector.

    Declaration
    public UdiRange(Udi udi, string selector = "this")
    Parameters
    Type Name Description
    Udi udi

    A Udi.

    string selector

    An optional selector.

    Properties

    View Source

    EntityType

    Gets the entity type of the Udi for this range.

    Declaration
    public string EntityType { get; }
    Property Value
    Type Description
    string
    View Source

    Selector

    Gets or sets the selector for this range.

    Declaration
    public string Selector { get; }
    Property Value
    Type Description
    string
    View Source

    Udi

    Gets the Udi for this range.

    Declaration
    public Udi Udi { get; }
    Property Value
    Type Description
    Udi

    Methods

    View Source

    Equals(object?)

    Determines whether the specified object is equal to the current object.

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

    The object to compare with the current object.

    Returns
    Type Description
    bool

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

    View Source

    GetHashCode()

    Serves as the default hash function.

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    int

    A hash code for the current object.

    View Source

    Parse(string)

    Declaration
    public static UdiRange Parse(string value)
    Parameters
    Type Name Description
    string value
    Returns
    Type Description
    UdiRange
    View Source

    ToString()

    Returns a string that represents the current object.

    Declaration
    public override string ToString()
    Returns
    Type Description
    string

    A string that represents the current object.

    Operators

    View Source

    operator ==(UdiRange?, UdiRange?)

    Declaration
    public static bool operator ==(UdiRange? range1, UdiRange? range2)
    Parameters
    Type Name Description
    UdiRange range1
    UdiRange range2
    Returns
    Type Description
    bool
    View Source

    operator !=(UdiRange, UdiRange)

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