Upgrade your Internet Experience
United States - English
Argentina (Español)
Australia (English)
Brasil (Português)
Canada (English)
Canada (Français)
中国 (简体中文)
Colombia (Español)
Deutschland (Deutsch)
España (Español)
France (Français)
India (English)
Italia (Italiano)
日本 (日本語)
México (Español)
Perú (Español)
Россия (Pусский)
United Kingdom (English)
United States (English)
More...
Microsoft.com
Welcome
Sign in
.NET Framework Developer Center
Home
Library
Learn
Downloads
Support
Community
Forums
Printer Friendly Version
Send
Add Content...
Click to Rate and Give Feedback
Give feedback on this content
MSDN Library
MSDN
Please Wait
MSDN Library
Please Wait
.NET Development
Please Wait
.NET Framework 3.5
Please Wait
.NET Framework Class Library
Please Wait
System.Web Namespace
Please Wait
VirtualPathUtility Class
Please Wait
VirtualPathUtility Methods
Please Wait
Switch on low bandwidth view
Collapse All
Members Filter
Include Protected Members
Include Inherited Members
Frameworks Filter
Include .NET Framework Members
Include .NET Compact Framework Members
Include XNA Framework Members
This page is specific to
Microsoft Visual Studio 2008/.Net Framework 3.5
Other versions are also available for the following:
Microsoft Visual Studio 2005/.Net Framework 2.0
.NET Framework 3.0
Microsoft Visual Studio 2010/.NET Framework 4.0
.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
:
Add a tag
Add
Cancel
Flag as
ContentBug
Community Content
Add new content
Annotations
|
Edit
Tags
:
Add a tag
Add
Cancel
Flag as
ContentBug
© 2009 Microsoft Corporation. All rights reserved.
Terms of Use
|
Trademarks
|
Privacy Statement