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 SourcePublishedDocumentUrlAlias()
Declaration
public PublishedDocumentUrlAlias()
Properties
View SourceAlias
Gets or sets the normalized URL alias (lowercase, no leading slash).
Declaration
public required string Alias { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
DocumentKey
Gets or sets the document key.
Declaration
public required Guid DocumentKey { get; set; }
Property Value
| Type | Description |
|---|---|
| Guid |
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.
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? |