This documentation is archived and is not being maintained.
VirtualPathUtility Members
Visual Studio 2008
Provides utility methods for common virtual path operations.
The VirtualPathUtility type exposes the following members.
| Name | Description | |
|---|---|---|
|
AppendTrailingSlash | Appends the literal slash mark (/) to the end of the virtual path, if one does not already exist. |
|
Combine | Combines a base path and a relative path. |
|
GetDirectory | Returns the directory portion of a virtual path. |
|
GetExtension | Retrieves the extension of the file that is referenced in the virtual path. |
|
GetFileName | Retrieves the file name of the file that is referenced in the virtual path. |
|
IsAbsolute | Returns a Boolean value indicating whether the specified virtual path is absolute; that is, it starts with a literal slash mark (/). |
|
IsAppRelative | Returns a Boolean value indicating whether the specified virtual path is relative to the application. |
|
MakeRelative | Returns the relative virtual path from one virtual path containing the root operator (the tilde [~]) to another. |
|
RemoveTrailingSlash | Removes a trailing slash mark (/) from a virtual path. |
|
ToAbsolute | Overloaded. Converts a virtual path to an application absolute path. |
|
ToAppRelative | Overloaded. Converts a virtual path into an application-relative path. |
Show: