Try our conversational search powered by Generative AI!

Class PropertyXhtmlTransform.LinkReplacer

Class that handles links in export packages.

Inheritance
System.Object
PropertyXhtmlTransform.LinkReplacer
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.Core.Transfer
Assembly: EPiServer.dll
Version: 9.12.2
Syntax
public class LinkReplacer

Constructors

LinkReplacer(IContentTransferContext)

Initializes a new instance of the PropertyXhtmlTransform.LinkReplacer class.

Declaration
public LinkReplacer(IContentTransferContext transferContext)
Parameters
Type Name Description
IContentTransferContext transferContext

The transfer context.

LinkReplacer(IContentTransferContext, IPermanentLinkMapper)

Initializes a new instance of the PropertyXhtmlTransform.LinkReplacer class.

Declaration
public LinkReplacer(IContentTransferContext transferContext, IPermanentLinkMapper permanentLinkMapper)
Parameters
Type Name Description
IContentTransferContext transferContext

The transfer context.

IPermanentLinkMapper permanentLinkMapper

Custom PermanentLinkMapper

Methods

ExportLinksAndAddFiles(String)

A helper function to add files refered in the XHTML to a export package.

Declaration
public string ExportLinksAndAddFiles(string url)
Parameters
Type Name Description
System.String url

(A dummy parameter to fullfill the contract for the TranslateUrl delegate)

Returns
Type Description
System.String

Always the same as the parameter url, so the link is not replaced.

Extension Methods