Url Class
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.
Assembly: Microsoft.VisualStudio.Shell.14.0 (in Microsoft.VisualStudio.Shell.14.0.dll)
| Name | Description | |
|---|---|---|
![]() | 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. |
| Name | Description | |
|---|---|---|
![]() | AbsoluteUrl | Gets the absolute URL as a string. |
![]() | Directory | Returns the unescaped absolute URL for the parent directory that contains the file that is referenced by this URL object. |
![]() | 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. |
| Name | Description | |
|---|---|---|
![]() | Equals(Object) | (Inherited from Object.) |
![]() | Finalize() | (Inherited from Object.) |
![]() | GetHashCode() | (Inherited from Object.) |
![]() | 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) | Gets the unescaped remainder of the path, starting at the specified segment. |
![]() | GetType() | (Inherited from Object.) |
![]() | JoinSegments(Int32, Int32) | Joins the specified segments into a path. |
![]() | MakeRelative(Url) | Makes the specified Url relative with respect to the current one. |
![]() | MemberwiseClone() | (Inherited from Object.) |
![]() | Move(Url, Url) | Moves the URL from the old base to the new one. |
![]() | ToString() | (Inherited from Object.) |
![]() ![]() | Unescape(String, Boolean) | Converts an escaped string to an unescaped string. |
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.



