Class VirtualPathArguments
Used as argument in for example GetUrl(ContentReference, String, VirtualPathArguments) to create an outgoing url.
Inheritance
Inherited Members
Namespace: EPiServer.Web.Routing
Assembly: EPiServer.dll
Version: 7.19.2Syntax
public class VirtualPathArguments
Constructors
VirtualPathArguments()
Default constructor.
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 |
ContextMode
Gets or sets the mode for the links.
Declaration
public ContextMode ContextMode { get; set; }
Property Value
Type | Description |
---|---|
ContextMode | The mode. |
Remarks
If not explicitly set it will use current ContextMode
RequestContext
Gets or sets the request context.
Declaration
public RequestContext RequestContext { get; set; }
Property Value
Type | Description |
---|---|
System.Web.Routing.RequestContext | The request context. |
Remarks
If not explicitly a new instance of RequestContext will be created.
RouteValues
Gets or sets the route values.
Declaration
public RouteValueDictionary RouteValues { get; set; }
Property Value
Type | Description |
---|---|
System.Web.Routing.RouteValueDictionary | The route values. |
Remarks
If not explicitly a new instance of System.Web.Routing.RouteValueDictionary will be created.
ValidateTemplate
Indicates if there should be a validation that the IContent type has a template. If the type has no template and ValidateTemplate is true, null will be returned as Url.
Declaration
public bool ValidateTemplate { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
Remarks
Default value is true.
To get Url for a ContentFolder (which has no template) set ValidateTemplate = false.