November Happy Hour will be moved to Thursday December 5th.

Class PropertyCategoryTransform

Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Transfer the PropertyCategory property for the transfer functionality.

Inheritance
System.Object
PropertyCategoryTransform
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.Internal
Assembly: EPiServer.dll
Version: 10.10.4
Syntax
[ServiceConfiguration(IncludeServiceAccessor = false)]
public class PropertyCategoryTransform

Constructors

PropertyCategoryTransform(CategoryRepository)

Declaration
public PropertyCategoryTransform(CategoryRepository categoryRepository)
Parameters
Type Name Description
CategoryRepository categoryRepository

Methods

ExportEventHandler(Object, TransformPropertyEventArgs)

Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Transform a category property to an exportable format by changing the value of the PropertySource in the event args. If the result is handled by this method and should not be handled by the default handeling the event args property IsHandled has to be set.

Declaration
public void ExportEventHandler(object sender, TransformPropertyEventArgs e)
Parameters
Type Name Description
System.Object sender

The sender has to inherit from a transfer context IContentTransferContext object.

TransformPropertyEventArgs e

The TransformPropertyEventArgs instance containing the event data.

ImportEventHandler(Object, TransformPropertyEventArgs)

Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Transform a category property from a import format to a concrete property. This is done by take the PropertySource from the event args and stores the transformed result in the PropertyDestination property that is used to create the page. If the result is handled by this method and should not be handled by the default handeling the event args property IsHandled has to be set.

Declaration
public void ImportEventHandler(object sender, TransformPropertyEventArgs e)
Parameters
Type Name Description
System.Object sender

The transfer context IContentTransferContext.

TransformPropertyEventArgs e

The TransformPropertyEventArgs instance containing the data to be transformed.

TransformCategoryForExport(String)

Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Transforms the string of categories from a list of id:s to a list of paths.

Declaration
public string TransformCategoryForExport(string categoriesAsIds)
Parameters
Type Name Description
System.String categoriesAsIds

A string with category id:s separated by commas.

Returns
Type Description
System.String

A string with category id:s separated by commas.

TransformCategoryForImport(String, IContentTransferContext)

Declaration
public string TransformCategoryForImport(string categoriesAsPaths, IContentTransferContext transferContext)
Parameters
Type Name Description
System.String categoriesAsPaths
IContentTransferContext transferContext
Returns
Type Description
System.String

Extension Methods