VirtualPathUtility Methods

VirtualPathUtility Methods

 

Namespace:   System.Web
Assembly:  System.Web (in System.Web.dll)

NameDescription
System_CAPS_pubmethodSystem_CAPS_staticAppendTrailingSlash(String)

Appends the literal slash mark (/) to the end of the virtual path, if one does not already exist.

System_CAPS_pubmethodSystem_CAPS_staticCombine(String, String)

Combines a base path and a relative path.

System_CAPS_pubmethodSystem_CAPS_staticGetDirectory(String)

Returns the directory portion of a virtual path.

System_CAPS_pubmethodSystem_CAPS_staticGetExtension(String)

Retrieves the extension of the file that is referenced in the virtual path.

System_CAPS_pubmethodSystem_CAPS_staticGetFileName(String)

Retrieves the file name of the file that is referenced in the virtual path.

System_CAPS_pubmethodSystem_CAPS_staticIsAbsolute(String)

Returns a Boolean value indicating whether the specified virtual path is absolute; that is, it starts with a literal slash mark (/).

System_CAPS_pubmethodSystem_CAPS_staticIsAppRelative(String)

Returns a Boolean value indicating whether the specified virtual path is relative to the application.

System_CAPS_pubmethodSystem_CAPS_staticMakeRelative(String, String)

Returns the relative virtual path from one virtual path containing the root operator (the tilde [~]) to another.

System_CAPS_pubmethodSystem_CAPS_staticRemoveTrailingSlash(String)

Removes a trailing slash mark (/) from a virtual path.

System_CAPS_pubmethodSystem_CAPS_staticToAbsolute(String)

Converts a virtual path to an application absolute path.

System_CAPS_pubmethodSystem_CAPS_staticToAbsolute(String, String)

Converts a virtual path to an application absolute path using the specified application path.

System_CAPS_pubmethodSystem_CAPS_staticToAppRelative(String)

Converts a virtual path to an application-relative path using the application virtual path that is in the AppDomainAppVirtualPath property.

System_CAPS_pubmethodSystem_CAPS_staticToAppRelative(String, String)

Converts a virtual path to an application-relative path using a specified application path.

Return to top
Show:
© 2016 Microsoft