class UriBuilder

in global :: System

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


public UriBuilder( string uri )

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

  • uri A URI string.

public UriBuilder( string schemeName, string hostName )

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

  • schemeName An Internet access protocol.
  • hostName A DNS-style domain name or IP address.

public UriBuilder( string scheme, string host, int portNumber )

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

  • scheme An Internet access protocol.
  • host A DNS-style domain name or IP address.
  • portNumber An IP port number for the service.

public UriBuilder( string scheme, string host, int port, string pathValue )

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

  • scheme An Internet access protocol.
  • host A DNS-style domain name or IP address.
  • port An IP port number for the service.
  • pathValue The path to the Internet resource.

public UriBuilder( string scheme, string host, int port, string path, string extraValue )

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

  • scheme An Internet access protocol.
  • host A DNS-style domain name or IP address.
  • port An IP port number for the service.
  • path The path to the Internet resource.
  • extraValue A query string or fragment identifier.

public UriBuilder( Uri uri )

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

  • uri An instance of the class.

public bool Equals( object rparam )

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

  • rparam The object to compare with the current instance.
  • Returns if represents the same as the constructed by this instance; otherwise, .

public string Fragment { get; set; }

Gets or sets the fragment portion of the URI.

  • Returns The fragment portion of the URI. The fragment identifier ("#") is added to the beginning of the fragment.

public string Host { get; set; }

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

  • Returns The DNS host name or IP address of the server.

public string Password { get; set; }

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

  • Returns The password of the user that accesses the URI.

public string Path { get; set; }

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

  • Returns The path to the resource referenced by the URI.

public int Port { get; set; }

Gets or sets the port number of the URI.

  • Returns The port number of the URI.

public string Query { get; set; }

Gets or sets any query information included in the URI.

  • Returns The query information included in the URI.

public string Scheme { get; set; }

Gets or sets the scheme name of the URI.

  • Returns The scheme of the URI.

public Uri Uri { get; }

Gets the instance constructed by the specified instance.

  • Returns A that contains the URI constructed by the .

public string UserName { get; set; }

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

  • Returns The user name of the user that accesses the URI.

public int GetHashCode( )

😔 No documentation found.

public string ToString( )

😔 No documentation found.

public Type GetType( )

😔 No documentation found.

public UriBuilder( )

😔 No documentation found.