Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more

Class VirtualPathArguments

Used as argument in for example GetUrl(ContentReference, String, VirtualPathArguments) to create an outgoing url.

Inheritance
System.Object
VirtualPathArguments
Namespace: EPiServer.Web.Routing
Assembly: EPiServer.Cms.AspNetCore.Templating.dll
Version: 12.0.3
Syntax
public class VirtualPathArguments : UrlResolverArguments

Constructors

VirtualPathArguments()

Initializes a new instance of the VirtualPathArguments class.

Declaration
public VirtualPathArguments()

Properties

Action

Gets or sets the action method that should be linked to.

Declaration
public string Action { get; set; }
Property Value
Type Description
System.String

ValidateTemplate

Gets or sets a value indicating whether there should be a validation that checks if the IContent type has a template. If the type has no template and ValidateTemplate is true, the UrlResolver will return null as the URL.

Declaration
public bool ValidateTemplate { get; set; }
Property Value
Type Description
System.Boolean
Remarks

The default value is true.

To get Url for a ContentFolder (which has no template) set ValidateTemplate = false.

Methods

GetHashCode()

Declaration
public override int GetHashCode()
Returns
Type Description
System.Int32

Extension Methods