Click to Rate and Give Feedback
MSDN
MSDN Library
.NET Development
.NET Framework 3.5
 VirtualPathUtility Members
Collapse All/Expand All Collapse All
Members FilterMembers Filter
Frameworks FilterFrameworks Filter
This page is specific to
Microsoft Visual Studio 2008/.NET Framework 3.5

Other versions are also available for the following:
.NET Framework Class Library
VirtualPathUtility Members

Provides utility methods for common virtual path operations.

The VirtualPathUtility type exposes the following members.

  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
Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2010 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks | Privacy Statement
Page view tracker