.NET Framework Class Library
VirtualPathUtility Methods

The VirtualPathUtility type exposes the following members.

Methods

  NameDescription
Public methodStatic memberAppendTrailingSlashAppends the literal slash mark (/) to the end of the virtual path, if one does not already exist.
Public methodStatic memberCombineCombines a base path and a relative path.
Public methodStatic memberGetDirectoryReturns the directory portion of a virtual path.
Public methodStatic memberGetExtensionRetrieves the extension of the file that is referenced in the virtual path.
Public methodStatic memberGetFileNameRetrieves the file name of the file that is referenced in the virtual path.
Public methodStatic memberIsAbsoluteReturns a Boolean value indicating whether the specified virtual path is absolute; that is, it starts with a literal slash mark (/).
Public methodStatic memberIsAppRelativeReturns a Boolean value indicating whether the specified virtual path is relative to the application.
Public methodStatic memberMakeRelativeReturns the relative virtual path from one virtual path containing the root operator (the tilde [~]) to another.
Public methodStatic memberRemoveTrailingSlashRemoves a trailing slash mark (/) from a virtual path.
Public methodStatic memberToAbsoluteOverloaded. Converts a virtual path to an application absolute path.
Public methodStatic memberToAppRelativeOverloaded. Converts a virtual path into an application-relative path.
Top
See Also

Reference

Tags :


Page view tracker