Export (0) Print
Expand All

VirtualPathUtility Methods

The VirtualPathUtility type exposes the following members.

  Name Description
Public method Static member AppendTrailingSlash Appends the literal slash mark (/) to the end of the virtual path, if one does not already exist.
Public method Static member Combine Combines a base path and a relative path.
Public method Static member GetDirectory Returns the directory portion of a virtual path.
Public method Static member GetExtension Retrieves the extension of the file that is referenced in the virtual path.
Public method Static member GetFileName Retrieves the file name of the file that is referenced in the virtual path.
Public method Static member IsAbsolute Returns a Boolean value indicating whether the specified virtual path is absolute; that is, it starts with a literal slash mark (/).
Public method Static member IsAppRelative Returns a Boolean value indicating whether the specified virtual path is relative to the application.
Public method Static member MakeRelative Returns the relative virtual path from one virtual path containing the root operator (the tilde [~]) to another.
Public method Static member RemoveTrailingSlash Removes a trailing slash mark (/) from a virtual path.
Public method Static member ToAbsolute(String) Converts a virtual path to an application absolute path.
Public method Static member ToAbsolute(String, String) Converts a virtual path to an application absolute path using the specified application path.
Public method Static member ToAppRelative(String) Converts a virtual path to an application-relative path using the application virtual path that is in the AppDomainAppVirtualPath property.
Public method Static member ToAppRelative(String, String) Converts a virtual path to an application-relative path using a specified application path.
Top
Show:
© 2014 Microsoft