SALES: 1-800-867-1380
Microsoft Azure
Collapse the table of content
Expand the table of content
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)

System.Object
  System.UriBuilder

public class UriBuilder

NameDescription
System_CAPS_pubmethodUriBuilder()

Initializes a new instance of the UriBuilder class.

System_CAPS_pubmethodUriBuilder(String)

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

System_CAPS_pubmethodUriBuilder(String, String)

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

System_CAPS_pubmethodUriBuilder(String, String, Int32)

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

System_CAPS_pubmethodUriBuilder(String, String, Int32, String)

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

System_CAPS_pubmethodUriBuilder(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.

System_CAPS_pubmethodUriBuilder(Uri)

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

NameDescription
System_CAPS_pubpropertyFragment

Gets or sets the fragment portion of the URI.

System_CAPS_pubpropertyHost

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

System_CAPS_pubpropertyPassword

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

System_CAPS_pubpropertyPath

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

System_CAPS_pubpropertyPort

Gets or sets the port number of the URI.

System_CAPS_pubpropertyQuery

Gets or sets any query information included in the URI.

System_CAPS_pubpropertyScheme

Gets or sets the scheme name of the URI.

System_CAPS_pubpropertyUri

Gets the Uri instance constructed by the specified UriBuilder instance.

System_CAPS_pubpropertyUserName

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

NameDescription
System_CAPS_pubmethodEquals(Object)

Compares an existing Uri instance with the contents of the UriBuilder for equality.(Overrides Object.Equals(Object).)

System_CAPS_protmethodFinalize()

Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

Returns the hash code for the URI.(Overrides Object.GetHashCode().)

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_protmethodMemberwiseClone()

Creates a shallow copy of the current Object.(Inherited from Object.)

System_CAPS_pubmethodToString()

Returns the display string for the specified UriBuilder instance.(Overrides Object.ToString().)

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.

Universal Windows Platform
Available since 4.5
.NET Framework
Available since 1.1
Portable Class Library
Supported in: portable .NET platforms
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Windows Phone
Available since 8.1

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

Return to top
Show:
© 2016 Microsoft