Class UrlSegmentOptions
Contains options used to specify how url segments should be created. It is used by IUrl
Inheritance
Inherited Members
Namespace: EPiServer.Web
Assembly: EPiServer.dll
Version: 11.20.7Syntax
[Options]
public class UrlSegmentOptions
Constructors
UrlSegmentOptions()
Creates a new instance of Url
Declaration
public UrlSegmentOptions()
Properties
CharacterMap
Specifies a mapping table for characters not allowed due to Valid
Declaration
public IDictionary<char, char> CharacterMap { get; }
Property Value
Type | Description |
---|---|
System. |
Remarks
Characters that are not allowed due to Valid
Encode
Declaration
[Obsolete("Use SupportIriCharacters instead")]
public bool Encode { get; set; }
Property Value
Type | Description |
---|---|
System. |
ReservedSegments
Defines segments that are reserved by e.g. IIS
Declaration
public IList<string> ReservedSegments { get; }
Property Value
Type | Description |
---|---|
System. |
Remarks
Default values are "bin", "app_code", "app_globalresources", "app_localresources", "app_webreferences", "app_data", "app_browsers"
SupportIriCharacters
Indicates if segments supports IRI characters. If Valid
Declaration
public bool SupportIriCharacters { get; set; }
Property Value
Type | Description |
---|---|
System. |
Remarks
Purpose of this is to indicate to for example rendering components that the segment might need to be encoded.
UseLowercase
Indicates if only lowercase characters should be used in url segments
Declaration
public bool UseLowercase { get; set; }
Property Value
Type | Description |
---|---|
System. |
Remarks
Default value is true
ValidCharacters
Gets or sets the characters that are valid to use as url segment, will be used as argument to Regexp
Declaration
public string ValidCharacters { get; set; }
Property Value
Type | Description |
---|---|
System. |
Remarks
Default value is 'A-Za-z0-9-_~.$'
ValidUrlCharacters
Declaration
[Obsolete("Use ValidCharacters instead")]
public string ValidUrlCharacters { get; set; }
Property Value
Type | Description |
---|---|
System. |