Class PermanentContentLinkMapper
Handles conversion between permanent links and classic links for content links.
Inheritance
System.Object
PermanentContentLinkMapper
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
Assembly: EPiServer.dll
Version: 8.11.0Syntax
[ServiceConfiguration(FactoryMember = "Instance")]
public class PermanentContentLinkMapper
Constructors
PermanentContentLinkMapper()
Declaration
public PermanentContentLinkMapper()
Properties
Instance
The global permanent content link mapper instance. This is not intended to be set by external code.
Declaration
public static PermanentContentLinkMapper Instance { get; set; }
Property Value
Type | Description |
---|---|
PermanentContentLinkMapper |
Methods
AddResolver(IContentResolver)
Adds a content resolver to be quieried when resolving content links.
Declaration
public void AddResolver(IContentResolver contentResolver)
Parameters
Type | Name | Description |
---|---|---|
IContentResolver | contentResolver | The page resolver. |
ClearResolvers()
Clears the list of content resolvers.
Declaration
public void ClearResolvers()
InitializeResolvers(IEnumerable)
Initializes a list of resolvers.
Declaration
public void InitializeResolvers(IEnumerable resolvers)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.IEnumerable | resolvers | The resolvers. |
Remarks
Will basically do the same as ClearResolvers followed by AddResolvers for all resolvers in the list.
RemoveResolver(IContentResolver)
Removes a previously registered resolver.
Declaration
public void RemoveResolver(IContentResolver contentResolver)
Parameters
Type | Name | Description |
---|---|---|
IContentResolver | contentResolver | The resolver to remove. |