Export (0) Print
Expand All

VirtualPathUtility Members

Provides utility methods for common virtual path operations.

The following tables list the members exposed by the VirtualPathUtility type.

(see also Protected Methods )
  Name Description
Public method Static AppendTrailingSlash Appends the literal slash mark (/) to the end of the virtual path, if one does not already exist.
Public method Static Combine Combines a base path and a relative path.
Public method Equals  Overloaded. Determines whether two Object instances are equal. (inherited from Object)
Public method Static GetDirectory Returns the directory portion of a virtual path.
Public method Static GetExtension Retrieves the extension of the file that is referenced in the virtual path.
Public method Static GetFileName Retrieves the file name of the file that is referenced in the virtual path.
Public method GetHashCode  Serves as a hash function for a particular type. (inherited from Object)
Public method GetType  Gets the Type of the current instance. (inherited from Object)
Public method Static IsAbsolute Returns a Boolean value indicating whether the specified virtual path is absolute; that is, it starts with a literal slash mark (/).
Public method Static IsAppRelative Returns a Boolean value indicating whether the specified virtual path is relative to the application.
Public method Static MakeRelative Returns the relative virtual path from one virtual path containing the root operator (the tilde [~]) to another.
Public method Static ReferenceEquals  Determines whether the specified Object instances are the same instance. (inherited from Object)
Public method Static RemoveTrailingSlash Removes a trailing slash mark (/) from a virtual path.
Public method Static ToAbsolute Overloaded. Converts a virtual path to an application absolute path.
Public method Static ToAppRelative Overloaded. Converts a virtual path into an application-relative path.
Public method ToString  Returns a String that represents the current Object. (inherited from Object)
Top

  Name Description
Protected method Finalize  Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (inherited from Object)
Protected method MemberwiseClone  Creates a shallow copy of the current Object. (inherited from Object)
Top

Community Additions

ADD
Show:
© 2014 Microsoft