Search Results for

    Show / Hide Table of Contents
    View Source

    Class StringUdi

    Represents a string-based entity identifier.

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

    Constructors

    View Source

    StringUdi(String, String)

    Initializes a new instance of the StringUdi class with an entity type and a string id.

    Declaration
    public StringUdi(string entityType, string id)
    Parameters
    Type Name Description
    System.String entityType

    The entity type part of the udi.

    System.String id

    The string id part of the udi.

    View Source

    StringUdi(Uri)

    Initializes a new instance of the StringUdi class with a uri value.

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

    The uri value of the udi.

    Properties

    View Source

    Id

    The string part of the identifier.

    Declaration
    public string Id { get; }
    Property Value
    Type Description
    System.String
    View Source

    IsRoot

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

    Declaration
    public override bool IsRoot { get; }
    Property Value
    Type Description
    System.Boolean
    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 StringUdi EnsureClosed()
    Returns
    Type Description
    StringUdi
    • Improve this Doc
    • View Source
    In This Article
    • Constructors
      • StringUdi(String, String)
      • StringUdi(Uri)
    • Properties
      • Id
      • IsRoot
    • Methods
      • EnsureClosed()
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX