Class SerializingItemEventArgs
Used when a object has been serialized by DDS serializer. An eventhandler has the possiblity to change the serialized item.
Inheritance
System.Object
System.EventArgs
SerializingItemEventArgs
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 SerializingItemEventArgs : EventArgs
Constructors
SerializingItemEventArgs(Object)
Initializes a new instance of the SerializingItemEventArgs class.
Declaration
public SerializingItemEventArgs(object value)
Parameters
Type | Name | Description |
---|---|---|
System.Object | value | The object instance. |
Properties
ObjectInstance
Gets the object instance that has been serialized.
Declaration
public object ObjectInstance { get; }
Property Value
Type | Description |
---|---|
System.Object | The object instance. |
Remarks
Any changes done to this instance will not be reflected to SerializedItem. To modify object instance use event SerializingObject.
SerializedItem
Gets or set the format of the serialized item.
Declaration
public XElement SerializedItem { get; set; }
Property Value
Type | Description |
---|---|
System.Xml.Linq.XElement | The serialized item. |
Remarks
Set this property if you will take control over the serilized format for the object instance. If value is not set the framework will take care of serialization.