Udostępnij za pośrednictwem


Url Members

Include Protected Members
Include Inherited Members

Wraps the Uri class. Provides an unescaped version of LocalPath for file URL types and AbsoluteUri for HTTP URL types. Also returns an unescaped result from MakeRelativeUri so that it can be presented to the user.

The Url type exposes the following members.

Constructors

 

Name

Description

Public method

Url

Overloaded. Initializes a new instance of Url.

Top

Methods

 

Name

Description

Public method

Equals

Determines whether the specified Object is equal to the current Object. (Inherited from Object.)

Protected method

Finalize

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

Public method

GetHashCode

Serves as a hash function for a particular type. (Inherited from Object.)

Public method

GetPartial

Overloaded.

Public method

GetRemainder

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

Public method

GetType

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

Public method

JoinSegments

Joins the specified segments into a path.

Public method

MakeRelative

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

Protected method

MemberwiseClone

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

Public method

Move

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

Public method

ToString

Returns a string that represents the current object. (Inherited from Object.)

Public methodStatic member

Unescape

Converts an escaped string to an unescaped string.

Top

Properties

 

Name

Description

Public property

AbsoluteUrl

Gets the absolute URL as a string.

Public property

Directory

Returns the unescaped absolute URL for the parent directory that contains the file that is referenced by this URL object.

Public property

IsFile

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

Public property

Segments

Gets an array of the segments of the URL.

Public property

Uri

Gets the URI for this URL.

Top

See Also

Reference

Url Class

Microsoft.VisualStudio.Shell Namespace