Early Preview

This is currently very much a preview. Please feel free to try things out, but don't be upset if anything is not yet working. Feedback is welcome over on our GitHub Dicussions page.

class System.​UriBuilder

Assembly: System.Runtime

Inheritance: object → UriBuilder

Provides a custom constructor for uniform resource identifiers (URIs) and modifies URIs for the <see cref="T:System.Uri" /> class.

Properties

public string
Fragment
Gets or sets the fragment portion of the URI, including the leading '#' character if not empty.
public string
Host
Gets or sets the Domain Name System (DNS) host name or IP address of a server.
public string
Password
Gets or sets the password associated with the user that accesses the URI.
public string
Path
Gets or sets the path to the resource referenced by the URI.
public int
Port
Gets or sets the port number of the URI.
public string
Query
Gets or sets any query information included in the URI, including the leading '?' character if not empty.
public string
Scheme
Gets or sets the scheme name of the URI.
public Uri
Uri
Gets the <see cref="T:System.Uri" /> instance constructed by the specified <see cref="T:System.UriBuilder" /> instance.
public string
UserName
Gets or sets the user name associated with the user that accesses the URI.

Methods

public bool
Equals​(object rparam)
rparam The object to compare with the current instance.
Returns <see langword="true" /> if <paramref name="rparam" /> represents the same <see cref="T:System.Uri" /> as the <see cref="T:System.Uri" /> constructed by this <see cref="T:System.UriBuilder" /> instance; otherwise, <see langword="false" /> .
Compares an existing <see cref="T:System.Uri" /> instance with the contents of the <see cref="T:System.UriBuilder" /> for equality.
public int
GetHashCode​()
Returns The hash code generated for the URI.
Returns the hash code for the URI.
public string
ToString​()
Returns The string that contains the unescaped display string of the <see cref="T:System.UriBuilder" /> .
Returns the display string for the specified <see cref="T:System.UriBuilder" /> instance.
protected void
Finalize​()
Inherited from object
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
public Type
GetType​()
Inherited from object
Returns The exact runtime type of the current instance.
Gets the <see cref="T:System.Type" /> of the current instance.
protected object
MemberwiseClone​()
Inherited from object
Returns A shallow copy of the current <see cref="T:System.Object" /> .
Creates a shallow copy of the current <see cref="T:System.Object" /> .