Class VirtualPathDataExtensions
Contains extension methods that are useful when working with System.Web.Routing.VirtualPathData.
Inheritance
System.Object
VirtualPathDataExtensions
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: EPiServer.Web.Routing
Assembly: EPiServer.dll
Version: 7.19.2Syntax
public static class VirtualPathDataExtensions
Methods
GetUrl(VirtualPathData)
Returns a URL from the routing information stored in the virtual path data.
Declaration
public static string GetUrl(this VirtualPathData virtualPathData)
Parameters
Type | Name | Description |
---|---|---|
System.Web.Routing.VirtualPathData | virtualPathData | The VirtualPathData instance this method extends. |
Returns
Type | Description |
---|---|
System.String | A string containing the URL. |
Remarks
You should use this method instead of the System.Web.Routing.VirtualPathData.VirtualPath property as it will take multiple site configuration (CMS enterprise sites) into consideration.