• DXC Service
  • Products
    • Episerver CMS
    • Episerver Commerce
    • Episerver Campaign
    • Episerver Find
    • Episerver Personalization
      • Advance
      • Perform
      • Insight
      • Reach
      • Personalized Find
    • Episerver Social API
    • Episerver apps & integrations
    • Ektron CMS
  • Documentation
    • Get started
      • DXC Service
      • CMS
      • Commerce
      • Campaign
      • Find
      • Personalization
      • Insight
      • Social API
      • Service API
    • Developer guides
      • DXC Service
      • CMS
      • Commerce
      • Campaign
      • Find
      • Advance
      • Perform
      • Reach
      • Personalized Find
      • Insight
      • Tracking
      • Profile Store
      • Content Delivery API
      • Social API
      • Service API
      • Forms
      • MA connectors
    • UI feature list
    • Technical overview
    • System requirements
    • Installation
    • User guide
    • APIs and libraries
      • CMS
      • Commerce
      • Campaign
      • Find
      • Social
      • REST APIs
    • Video tutorials
    • Releases
    • Upgrading
      • CMS
      • Commerce
      • Find
      • Forms
      • Service API
      • Personalization
  • Blogs
  • Forum
  • Support
  • EMVPs
  • Register
  • Log in
All Content Documentation Forum User Guide Support Help Center Blogs Articles Releases Bug List SDK Documents
People
Home / Documentation /
  • Framework reference
  • EPiServer
  • UrlBuilder
    • UrlBuilder Methods
    • UrlBuilder Properties

UrlBuilder Class

Assembly: EPiServer (in EPiServer.dll) Version: 11.5.1.0 (11.5.1.0)

Syntax:

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.

Methods

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

Properties

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

Examples

The example below shows how to useUrlBuilder to merge query strings.

 Copy imageCopy

Inheritance

  • System.Object
  • EPiServer.UrlBuilder

About Episerver

  • episerver.com
  • Episerver certification
  • Job openings
  • License center
  • Privacy statement

Community

  • Blogs
  • Forums
  • Articles
  • Terms of use
  • EMVP program

Learning resources

  • Technical overview
  • Learning path Episerver CMS
  • Developer guides
  • User guide
  • Video tutorials
  • Episerver GitHub
  • Episerver Education

Contact

Episerver Support

See the Support page for contact information.

Feedback on Episerver World

If you’d like to give feedback about this site, please click here. Thank you very much!
© Episerver 2019 │ About Episerver World