Class EditUrlResolver

This class supports the EPiServer infrastructure and is not intended to be used directly from your code.

Inheritance
System.Object
EditUrlResolver
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: 8.11.0
Syntax
public abstract class EditUrlResolver

Constructors

EditUrlResolver()

Declaration
protected EditUrlResolver()

Methods

GetEditViewUrl()

Gets the URL to the edit view of the current site.

Declaration
public virtual Url GetEditViewUrl()
Returns
Type Description
Url

An absolute or relative URL

GetEditViewUrl(ContentReference)

Gets the URL to the edit view for the specified content.

Declaration
public virtual Url GetEditViewUrl(ContentReference contentLink)
Parameters
Type Name Description
ContentReference contentLink
Returns
Type Description
Url

An absolute or relative URL

Exceptions
Type Condition
System.ArgumentNullException

GetEditViewUrl(ContentReference, EditUrlArguments)

Gets the URL to the edit view for the specified content and arguments.

Declaration
public virtual Url GetEditViewUrl(ContentReference contentLink, EditUrlArguments editUrlArguments)
Parameters
Type Name Description
ContentReference contentLink
EditUrlArguments editUrlArguments
Returns
Type Description
Url

An absolute or relative URL

Exceptions
Type Condition
System.ArgumentNullException

GetEditViewUrl(EditUrlArguments)

Gets the URL to the edit view of the current site using the specified arguments.

Declaration
public virtual Url GetEditViewUrl(EditUrlArguments editUrlArguments)
Parameters
Type Name Description
EditUrlArguments editUrlArguments
Returns
Type Description
Url

An absolute or relative URL

Exceptions
Type Condition
System.ArgumentNullException

GetEditViewUrl(SiteDefinition)

Gets the URL to the edit view of the provided site.

Declaration
public virtual Url GetEditViewUrl(SiteDefinition site)
Parameters
Type Name Description
SiteDefinition site
Returns
Type Description
Url

An absolute or relative URL

Exceptions
Type Condition
System.ArgumentNullException

site

GetEditViewUrl(SiteDefinition, EditUrlArguments)

Gets the URL to the edit view of the provided site using the specified arguments.

Declaration
public virtual Url GetEditViewUrl(SiteDefinition site, EditUrlArguments editUrlArguments)
Parameters
Type Name Description
SiteDefinition site
EditUrlArguments editUrlArguments
Returns
Type Description
Url

An absolute or relative URL

Exceptions
Type Condition
System.ArgumentNullException

ResolveUrl(SiteDefinition, ContentReference, EditUrlArguments)

Should get the URL to the edit view for the specified site, content and arguments.

Declaration
protected abstract Url ResolveUrl(SiteDefinition site, ContentReference contentLink, EditUrlArguments editUrlArguments)
Parameters
Type Name Description
SiteDefinition site

The site. A null value implies the current site.

ContentReference contentLink

The content link. A null value implies that the base edit view URL should be returned.

EditUrlArguments editUrlArguments

Arguments to use for resolving the URL

Returns
Type Description
Url

An absolute or relative URL

Extension Methods