Assembly: EPiServer (in EPiServer.dll) Version: 11.5.1.0 (11.5.1.0)
C# |
---|
public class UrlBuilder |
Extend the UriBuilder class to make http-assumptions about relative Url's. Use like/instead of System.UriBuilder, but it will handle relative Uri's as if they are http-Uri's.
Name | Summary | Status |
---|---|---|
MergeQueryCollection | Merges the query collection with the passed collection. | public |
ToString | Returns a canonical string representation for the specified Url instance. | public |
UrlBuilder Constructor (String) | Initializes a new instance of the UrlBuilder class. | public |
UrlBuilder Constructor (Uri) | Initializes a new instance of the UrlBuilder class. | public |
UrlBuilder Constructor (Url) | Initializes a new instance of the UrlBuilder class. | public |
UrlBuilder Constructor (UrlBuilder) | Initializes a new instance of the UrlBuilder class. | public |
Name | Summary | Status |
---|---|---|
Encoding | Gets the encoding used for unescaping and escaping. | public |
Fragment | Gets the escaped fragment. | public |
HasAuthorityPart | Gets a value indicating whether this instance has any authority part (scheme, username, password, port, host) | public |
Host | Gets the host component of this instance. | public |
IsEmpty | Gets a value indicating whether this instance is empty. | public |
IsPathRelative | Gets a value indicating whether the path is relative. | public |
Password | Gets or sets the password. | public |
Path | Gets the path. Will return a relative path if the path was relative to start with. | public |
Port | Gets the port number of this URL. | public |
Query | Gets any query information included in the specified URL. | public |
QueryCollection | Gets or sets a parsed and decoded collection of query string parameters. | public |
QueryId | Gets and sets the id in the QueryCollection | public |
QueryLanguage | Gets and sets the epslanguage in the QueryCollection | public |
QueryTemplate | Gets and sets the epstemplate in the QueryCollection | public |
Scheme | Gets the scheme name for this URL. | public |
ThisBuilder | Gets or sets this instances' UriBuilder. | protected |
Uri | Gets or sets the Uri. | public |
UserName | Gets or sets the user name | public |
The example below shows how to useUrlBuilder to merge query strings.
![]() | |
---|---|