Uri Constructors

Definition

Overloads

Uri(String)

Initializes a new Uri object from the specified Uniform Resource Identifier (URI) string. Initializing the Uri also parses the string and populates the Uri properties that represent Uniform Resource Identifier (URI) components.

Uri(String, String)

Initializes a new Uri by combining a base Uniform Resource Identifier (URI) and a relative Uniform Resource Identifier (URI). Initializing the Uri also parses the combined string and populates the Uri properties that represent Uniform Resource Identifier (URI) components.

Uri(String)

Initializes a new Uri object from the specified Uniform Resource Identifier (URI) string. Initializing the Uri also parses the string and populates the Uri properties that represent Uniform Resource Identifier (URI) components.

public:
 Uri(Platform::String ^ uri);
 Uri(winrt::hstring const & uri);
public Uri(string uri);
function Uri(uri)
Public Sub New (uri As String)

Parameters

uri
String

The string from which the new Uri object is created.

See also

Uri(String, String)

Initializes a new Uri by combining a base Uniform Resource Identifier (URI) and a relative Uniform Resource Identifier (URI). Initializing the Uri also parses the combined string and populates the Uri properties that represent Uniform Resource Identifier (URI) components.

public:
 Uri(Platform::String ^ baseUri, Platform::String ^ relativeUri);
 Uri(winrt::hstring const & baseUri, winrt::hstring const & relativeUri);
public Uri(string baseUri, string relativeUri);
function Uri(baseUri, relativeUri)
Public Sub New (baseUri As String, relativeUri As String)

Parameters

baseUri
String

The base Uniform Resource Identifier (URI).

relativeUri
String

The relative Uniform Resource Identifier (URI).

See also

Applies to