Url Url Url Url 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

Constructors

Url(String) Url(String) Url(String) Url(String) Url(String)

Initializes a new instance of Url for the specified path.

Url(Url, String) Url(Url, String) Url(Url, String) Url(Url, String) Url(Url, String)

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

Properties

AbsoluteUrl AbsoluteUrl AbsoluteUrl AbsoluteUrl AbsoluteUrl

Gets the absolute URL as a string.

Directory Directory Directory Directory Directory

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

IsFile IsFile IsFile IsFile IsFile

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

Segments Segments Segments Segments Segments

Gets an array of the segments of the URL.

Uri Uri Uri Uri Uri

Gets the URI for this URL.

Methods

GetPartial(Int32) GetPartial(Int32) GetPartial(Int32) GetPartial(Int32) GetPartial(Int32)

Gets the unescaped path up to the specified index.

GetPartial(Int32, Int32) GetPartial(Int32, Int32) GetPartial(Int32, Int32) GetPartial(Int32, Int32) GetPartial(Int32, Int32)

Gets the unescaped path between the two specified points

GetRemainder(Int32) GetRemainder(Int32) GetRemainder(Int32) GetRemainder(Int32) GetRemainder(Int32)

Gets the unescaped remainder of the path, starting at the specified segment.

JoinSegments(Int32, Int32) JoinSegments(Int32, Int32) JoinSegments(Int32, Int32) JoinSegments(Int32, Int32) JoinSegments(Int32, Int32)

Joins the specified segments into a path.

MakeRelative(Url) MakeRelative(Url) MakeRelative(Url) MakeRelative(Url) MakeRelative(Url)

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

Move(Url, Url) Move(Url, Url) Move(Url, Url) Move(Url, Url) Move(Url, Url)

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

Unescape(String, Boolean) Unescape(String, Boolean) Unescape(String, Boolean) Unescape(String, Boolean) Unescape(String, Boolean)

Converts an escaped string to an unescaped string.

Extension Methods

FindAncestor<TElementType>(TElementType, Func<TElementType,TElementType>, Func<TElementType,Boolean>) FindAncestor<TElementType>(TElementType, Func<TElementType,TElementType>, Func<TElementType,Boolean>) FindAncestor<TElementType>(TElementType, Func<TElementType,TElementType>, Func<TElementType,Boolean>) FindAncestor<TElementType>(TElementType, Func<TElementType,TElementType>, Func<TElementType,Boolean>) FindAncestor<TElementType>(TElementType, Func<TElementType,TElementType>, Func<TElementType,Boolean>)
FindAncestor<TAncestorType,TElementType>(TElementType, Func<TElementType,TElementType>) FindAncestor<TAncestorType,TElementType>(TElementType, Func<TElementType,TElementType>) FindAncestor<TAncestorType,TElementType>(TElementType, Func<TElementType,TElementType>) FindAncestor<TAncestorType,TElementType>(TElementType, Func<TElementType,TElementType>) FindAncestor<TAncestorType,TElementType>(TElementType, Func<TElementType,TElementType>)

Microsoft internal use only.

FindAncestorOrSelf<TElementType>(TElementType, Func<TElementType,TElementType>, Func<TElementType,Boolean>) FindAncestorOrSelf<TElementType>(TElementType, Func<TElementType,TElementType>, Func<TElementType,Boolean>) FindAncestorOrSelf<TElementType>(TElementType, Func<TElementType,TElementType>, Func<TElementType,Boolean>) FindAncestorOrSelf<TElementType>(TElementType, Func<TElementType,TElementType>, Func<TElementType,Boolean>) FindAncestorOrSelf<TElementType>(TElementType, Func<TElementType,TElementType>, Func<TElementType,Boolean>)
FindAncestorOrSelf<TAncestorType,TElementType>(TElementType, Func<TElementType,TElementType>) FindAncestorOrSelf<TAncestorType,TElementType>(TElementType, Func<TElementType,TElementType>) FindAncestorOrSelf<TAncestorType,TElementType>(TElementType, Func<TElementType,TElementType>) FindAncestorOrSelf<TAncestorType,TElementType>(TElementType, Func<TElementType,TElementType>) FindAncestorOrSelf<TAncestorType,TElementType>(TElementType, Func<TElementType,TElementType>)
IsAncestorOf<TElementType>(TElementType, TElementType, Func<TElementType,TElementType>) IsAncestorOf<TElementType>(TElementType, TElementType, Func<TElementType,TElementType>) IsAncestorOf<TElementType>(TElementType, TElementType, Func<TElementType,TElementType>) IsAncestorOf<TElementType>(TElementType, TElementType, Func<TElementType,TElementType>) IsAncestorOf<TElementType>(TElementType, TElementType, Func<TElementType,TElementType>)

Microsoft internal use only.

Applies to