Class DocumentUrlService.UrlSegment
Model used to represent a URL segment for a document in the cache.
Inheritance
System.Object
Namespace: Umbraco.Cms.Core.Services
Assembly: Umbraco.Core.dll
Syntax
public class UrlSegment
Constructors
View SourceUrlSegment(String, Boolean)
Initializes a new instance of the Document
Declaration
public UrlSegment(string segment, bool isPrimary)
Parameters
Type | Name | Description |
---|---|---|
System. |
segment | |
System. |
isPrimary |
Properties
View SourceIsPrimary
Gets a value indicating whether this URL segment is the primary one for the document, language and state.
Declaration
public bool IsPrimary { get; }
Property Value
Type | Description |
---|---|
System. |
Segment
Gets the URL segment string.
Declaration
public string Segment { get; }
Property Value
Type | Description |
---|---|
System. |