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

Class EntityReferenceTransferHandler

Hanldes transfer of EntityRefernce instances stored in DynamicDataStore.

Inheritance
System.Object
EntityReferenceTransferHandler
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.Enterprise.Transfer
Assembly: EPiServer.Enterprise.dll
Version: 9.12.2
Syntax
public class EntityReferenceTransferHandler : IDynamicDataTransferTypeHandler, ITypeTransferHandler

Constructors

EntityReferenceTransferHandler()

Declaration
public EntityReferenceTransferHandler()

Properties

HandledType

Gets the type that is hanlded by this implemenation. returns typeof(EntityReference)

Declaration
public Type HandledType { get; }
Property Value
Type Description
System.Type

The type that is hanlded by this .

Methods

CreateInstance(DynamicDataTransferHandler, XElement)

Creates an instance of handled type from serialized format.

Declaration
public object CreateInstance(DynamicDataTransferHandler transferHandler, XElement serializedItem)
Parameters
Type Name Description
DynamicDataTransferHandler transferHandler

The transfer handler.

System.Xml.Linq.XElement serializedItem

The serialized item.

Returns
Type Description
System.Object

An instance of handled type

CreateInstance(IDynamicDataTransfer, XElement)

Creates an instance of handled type from serialized format.

Declaration
public object CreateInstance(IDynamicDataTransfer transferHandler, XElement serializedItem)
Parameters
Type Name Description
IDynamicDataTransfer transferHandler

The transfer handler.

System.Xml.Linq.XElement serializedItem

The serialized item.

Returns
Type Description
System.Object

An instance of handled type

SerializeItem(DynamicDataTransferHandler, Object)

Replaces the serialized item with an own serialized format.

Declaration
public XElement SerializeItem(DynamicDataTransferHandler transferHandler, object instance)
Parameters
Type Name Description
DynamicDataTransferHandler transferHandler

The transfer handler.

System.Object instance

The instance that beeing serialized.

Returns
Type Description
System.Xml.Linq.XElement

Replaced serialized format

SerializeItem(IDynamicDataTransfer, Object)

Takes care of serialization of item with an own serialized format.

Declaration
public XElement SerializeItem(IDynamicDataTransfer transferHandler, object instance)
Parameters
Type Name Description
IDynamicDataTransfer transferHandler

The transfer handler.

System.Object instance

The instance that beeing serialized.

Returns
Type Description
System.Xml.Linq.XElement

Replaced serialized format

Implements

Extension Methods