Url Class

Definition

This class wraps the Uri class and provides an unescaped "LocalPath" for file URL's and an unescaped AbsoluteUri for other schemes, plus it also returned an un-hex-escaped result from MakeRelative so it can be presented to the user.

public ref class Url
[Windows::Foundation::Metadata::WebHostHidden]
class Url
public class Url
type Url = class
Public Class Url
Inheritance
Url

Constructors

Url(String)

Initializes a new instance of Url for the specified path.

Url(Url, String)

Initializes a new instance of Url that is based on the specified base Url and relative path.

Properties

AbsoluteUrl

Gets the absolute URL as a string.

Directory

Returns the AbsoluteUrl for the parent directory containing the file referenced by this URL object, where the Directory string is also unescaped.

IsFile

Determines whether the URL represents a file (as opposed to an HTTP location).

Segments

Gets an array of the segments of the URL.

Uri

Gets the URI for this URL.

Methods

GetPartial(Int32)

Gets the unescaped path up to the specified index.

GetPartial(Int32, Int32)

Gets the unescaped path between the two specified points

GetRemainder(Int32)

Return unescaped relative path starting segment i.

JoinSegments(Int32, Int32)

Joins the specified segments into a path.

MakeRelative(Url)

Makes the specified Url relative with respect to the current one.

Move(Url, Url)

Moves the URL from the old base to the new one.

Unescape(String, Boolean)

Converts an escaped string to an unescaped string.

Applies to