VirtualPathUtility Methods
MSDN Home
MSDN
MSDN Library
.NET Development
.NET Framework 3.5
.NET Framework Class Library
System.Web Namespace
VirtualPathUtility Class
VirtualPathUtility Methods
AppendTrailingSlash Method
Combine Method
GetDirectory Method
GetExtension Method
GetFileName Method
IsAbsolute Method
IsAppRelative Method
MakeRelative Method
RemoveTrailingSlash Method
ToAbsolute Method
ToAppRelative Method
VirtualPathUtility Class
VirtualPathUtility Members
VirtualPathUtility Methods
Switch View :
Classic
Lightweight Beta
ScriptFree
Feedback
.NET Framework Class Library
VirtualPathUtility Methods
The
VirtualPathUtility
type exposes the following members.
Methods
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.
Top
See Also
Reference
VirtualPathUtility Class
System.Web Namespace
Tags :