Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

UriBuilder Class

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

Namespace:  System
Assembly:  System (in System.dll)

public class UriBuilder

The UriBuilder type exposes the following members.

  NameDescription
Public methodSupported by Portable Class LibrarySupported in .NET for Windows Store appsUriBuilder()Initializes a new instance of the UriBuilder class.
Public methodSupported by Portable Class LibrarySupported in .NET for Windows Store appsUriBuilder(String)Initializes a new instance of the UriBuilder class with the specified URI.
Public methodSupported by Portable Class LibrarySupported in .NET for Windows Store appsUriBuilder(Uri)Initializes a new instance of the UriBuilder class with the specified Uri instance.
Public methodSupported by Portable Class LibrarySupported in .NET for Windows Store appsUriBuilder(String, String)Initializes a new instance of the UriBuilder class with the specified scheme and host.
Public methodSupported by Portable Class LibrarySupported in .NET for Windows Store appsUriBuilder(String, String, Int32)Initializes a new instance of the UriBuilder class with the specified scheme, host, and port.
Public methodSupported by Portable Class LibrarySupported in .NET for Windows Store appsUriBuilder(String, String, Int32, String)Initializes a new instance of the UriBuilder class with the specified scheme, host, port number, and path.
Public methodSupported by Portable Class LibrarySupported in .NET for Windows Store appsUriBuilder(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.
Top

  NameDescription
Public propertySupported by Portable Class LibrarySupported in .NET for Windows Store appsFragmentGets or sets the fragment portion of the URI.
Public propertySupported by Portable Class LibrarySupported in .NET for Windows Store appsHostGets or sets the Domain Name System (DNS) host name or IP address of a server.
Public propertySupported by Portable Class LibrarySupported in .NET for Windows Store appsPasswordGets or sets the password associated with the user that accesses the URI.
Public propertySupported by Portable Class LibrarySupported in .NET for Windows Store appsPathGets or sets the path to the resource referenced by the URI.
Public propertySupported by Portable Class LibrarySupported in .NET for Windows Store appsPortGets or sets the port number of the URI.
Public propertySupported by Portable Class LibrarySupported in .NET for Windows Store appsQueryGets or sets any query information included in the URI.
Public propertySupported by Portable Class LibrarySupported in .NET for Windows Store appsSchemeGets or sets the scheme name of the URI.
Public propertySupported by Portable Class LibrarySupported in .NET for Windows Store appsUriGets the Uri instance constructed by the specified UriBuilder instance.
Public propertySupported by Portable Class LibrarySupported in .NET for Windows Store appsUserNameThe user name associated with the user that accesses the URI.
Top

  NameDescription
Public methodSupported by Portable Class LibrarySupported in .NET for Windows Store appsEqualsCompares an existing Uri instance with the contents of the UriBuilder for equality. (Overrides Object.Equals(Object).)
Protected methodSupported by Portable Class LibrarySupported in .NET for Windows Store appsFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public methodSupported by Portable Class LibrarySupported in .NET for Windows Store appsGetHashCodeReturns the hash code for the URI. (Overrides Object.GetHashCode().)
Public methodSupported by Portable Class LibrarySupported in .NET for Windows Store appsGetTypeGets the Type of the current instance. (Inherited from Object.)
Protected methodSupported by Portable Class LibrarySupported in .NET for Windows Store appsMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Public methodSupported by Portable Class LibrarySupported in .NET for Windows Store appsToStringReturns the display string for the specified UriBuilder instance. (Overrides Object.ToString().)
Top

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.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0, 1.1, 1.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Portable Class Library

Supported in: Portable Class Library

.NET for Windows Store apps

Supported in: Windows 8

Supported in: Windows Phone 8.1

Supported in: Windows Phone Silverlight 8.1

Supported in: Windows Phone Silverlight 8

Windows Phone 8.1, Windows Phone 8, Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Show:
© 2014 Microsoft