Search Results for

    Show / Hide Table of Contents
    View Source

    Class PublishedDocumentUrlAlias

    Represents a URL alias for a published document.

    Inheritance
    object
    Namespace: Umbraco.Cms.Core.Models
    Assembly: Umbraco.Core.dll
    Syntax
    public class PublishedDocumentUrlAlias

    Constructors

    View Source

    PublishedDocumentUrlAlias()

    Declaration
    public PublishedDocumentUrlAlias()

    Properties

    View Source

    Alias

    Gets or sets the normalized URL alias (lowercase, no leading slash).

    Declaration
    public required string Alias { get; set; }
    Property Value
    Type Description
    string
    View Source

    DocumentKey

    Gets or sets the document key.

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

    LanguageId

    Gets or sets the language Id.

    Declaration
    [Obsolete("Use NullableLanguageId instead. This property returns 0 for invariant content. Scheduled for removal in Umbraco 18, when the NullableLanguageId will also be renamed to LanguageId.")]
    public int LanguageId { get; set; }
    Property Value
    Type Description
    int
    Remarks

    This property returns 0 for invariant content. Use NullableLanguageId instead, which correctly returns null for invariant content.

    View Source

    NullableLanguageId

    Gets or sets the language Id. NULL indicates invariant content (not language-specific).

    Declaration
    public required int? NullableLanguageId { get; set; }
    Property Value
    Type Description
    int?
    • View Source
    In this article
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX