System.Web.VirtualPathUtility Members

The members of System.Web.VirtualPathUtility are listed below.

See Also: Inherited members from System.Object

Public Methods

static
AppendTrailingSlash(string) : string

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

static
Combine(string, string) : string

Combines a base path and a relative path.

static
GetDirectory(string) : string

Returns the directory portion of a virtual path.

static
GetExtension(string) : string

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

static
GetFileName(string) : string

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

static
IsAbsolute(string) : bool

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

static
IsAppRelative(string) : bool

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

static
MakeRelative(string, string) : string

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

static
RemoveTrailingSlash(string) : string

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

static
ToAbsolute(string) : string

Converts a virtual path to an application absolute path.

static
ToAbsolute(string, string) : string

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

static
ToAbsolute(string, string, bool) : string
Documentation for this section has not yet been entered.
static
ToAppRelative(string) : string

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

static
ToAppRelative(string, string) : string

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