Class DeserializingItemEventArgs
Raised when DDS serilalizer fins an objects which format has been replaced. An event handler is expected to recreate an object instance from the serialized format.
Inheritance
System.Object
System.EventArgs
DeserializingItemEventArgs
Inherited Members
System.EventArgs.Empty
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.Data.Serialization
Assembly: EPiServer.Data.dll
Version: 11.20.7Syntax
public class DeserializingItemEventArgs : EventArgs
Constructors
DeserializingItemEventArgs(XElement, Type)
Initializes a new instance of the DeserializingItemEventArgs class.
Declaration
public DeserializingItemEventArgs(XElement serializedElement, Type type)
Parameters
Type | Name | Description |
---|---|---|
System.Xml.Linq.XElement | serializedElement | The serialized element. |
System.Type | type | The type to create an instance of. |
Properties
ObjectInstance
Gets or sets the object instance that is to be saved to DDS. It is expected to be of type ObjectType.
Declaration
public object ObjectInstance { get; set; }
Property Value
Type | Description |
---|---|
System.Object | The object instance. |
Remarks
The event handler is expected to recreate an object instance from the serialized
ObjectType
Gets the type of the object that is expected to be created.
Declaration
public Type ObjectType { get; }
Property Value
Type | Description |
---|---|
System.Type | The type of the object. |
SerializedItem
Gets the serialized item.
Declaration
public XElement SerializedItem { get; }
Property Value
Type | Description |
---|---|
System.Xml.Linq.XElement | The serialized item. |
Remarks
This is the format set by an event handler to SerializingToXml.