Search Results for

    Show / Hide Table of Contents
    View Source

    Class GuidUdi

    Represents a guid-based entity identifier.

    Inheritance
    object
    Udi
    Namespace: Umbraco.Cms.Core
    Assembly: Umbraco.Core.dll
    Syntax
    [TypeConverter(typeof(UdiTypeConverter))]
    public class GuidUdi : Udi

    Constructors

    View Source

    GuidUdi(string, Guid)

    Initializes a new instance of the GuidUdi class with an entity type and a guid.

    Declaration
    public GuidUdi(string entityType, Guid guid)
    Parameters
    Type Name Description
    string entityType

    The entity type part of the udi.

    Guid guid

    The guid part of the udi.

    View Source

    GuidUdi(Uri)

    Initializes a new instance of the GuidUdi class with an uri value.

    Declaration
    public GuidUdi(Uri uriValue)
    Parameters
    Type Name Description
    Uri uriValue

    The uri value of the udi.

    Properties

    View Source

    Guid

    The guid part of the identifier.

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

    IsRoot

    Gets a value indicating whether this Udi is a root Udi.

    Declaration
    public override bool IsRoot { get; }
    Property Value
    Type Description
    bool
    Remarks

    A root Udi points to the "root of all things" for a given entity type, e.g. the content tree root.

    Methods

    View Source

    EnsureClosed()

    Declaration
    public GuidUdi EnsureClosed()
    Returns
    Type Description
    GuidUdi
    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.

    • Edit this page
    • View Source
    In this article
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX