UriBuilder UriBuilder UriBuilder UriBuilder Class

Definition

Provides a custom constructor for uniform resource identifiers (URIs) and modifies URIs for the Uri class.

public ref class UriBuilder
public class UriBuilder
type UriBuilder = class
Public Class UriBuilder
Inheritance
UriBuilderUriBuilderUriBuilderUriBuilder

Remarks

The UriBuilder class provides a convenient way to modify the contents of a Uri instance without creating a new Uri instance for each modification.

The UriBuilder properties provide read/write access to the read-only Uri properties so that they can be modified.

Constructors

UriBuilder() UriBuilder() UriBuilder() UriBuilder()

Initializes a new instance of the UriBuilder class.

UriBuilder(String) UriBuilder(String) UriBuilder(String) UriBuilder(String)

Initializes a new instance of the UriBuilder class with the specified URI.

UriBuilder(String, String) UriBuilder(String, String) UriBuilder(String, String) UriBuilder(String, String)

Initializes a new instance of the UriBuilder class with the specified scheme and host.

UriBuilder(String, String, Int32) UriBuilder(String, String, Int32) UriBuilder(String, String, Int32) UriBuilder(String, String, Int32)

Initializes a new instance of the UriBuilder class with the specified scheme, host, and port.

UriBuilder(String, String, Int32, String) UriBuilder(String, String, Int32, String) UriBuilder(String, String, Int32, String) UriBuilder(String, String, Int32, String)

Initializes a new instance of the UriBuilder class with the specified scheme, host, port number, and path.

UriBuilder(String, String, Int32, String, String) UriBuilder(String, String, Int32, String, String) UriBuilder(String, String, Int32, String, String) UriBuilder(String, String, Int32, String, String)

Initializes a new instance of the UriBuilder class with the specified scheme, host, port number, path and query string or fragment identifier.

UriBuilder(Uri) UriBuilder(Uri) UriBuilder(Uri) UriBuilder(Uri)

Initializes a new instance of the UriBuilder class with the specified Uri instance.

Properties

Fragment Fragment Fragment Fragment

Gets or sets the fragment portion of the URI.

Host Host Host Host

Gets or sets the Domain Name System (DNS) host name or IP address of a server.

Password Password Password Password

Gets or sets the password associated with the user that accesses the URI.

Path Path Path Path

Gets or sets the path to the resource referenced by the URI.

Port Port Port Port

Gets or sets the port number of the URI.

Query Query Query Query

Gets or sets any query information included in the URI.

Scheme Scheme Scheme Scheme

Gets or sets the scheme name of the URI.

Uri Uri Uri Uri

Gets the Uri instance constructed by the specified UriBuilder instance.

UserName UserName UserName UserName

The user name associated with the user that accesses the URI.

Methods

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

Compares an existing Uri instance with the contents of the UriBuilder for equality.

GetHashCode() GetHashCode() GetHashCode() GetHashCode()

Returns the hash code for the URI.

GetType() GetType() GetType() GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
ToString() ToString() ToString() ToString()

Returns the display string for the specified UriBuilder instance.

Applies to

See Also