The event arguments used by handle-serialization to let registered serialization code perform the serialization of items.
Inheritance Hierarchy
Remarks
Members
No filters for this type
Constructors
Initializes a new instance of the HandleSerializationEventArgs class using the provided context to write the item using the given type for serialization.
Initializes a new instance of the HandleSerializationEventArgs class using the provided context to write the
item using the given type for serialization.Parameters
- context: IWriteContext
- The context to use for writing.
- item: any
- The item to serialize.
- serializationType?: Constructor
- The type that should be used for serialization, which needs to be a super type or interface of the
item. If omitted, the type is inferred from theitem.
Properties
Gets the context to be used for writing.
Gets the context to be used for writing.
readonlyfinal
Property Value
The context.
Gets or sets a value indicating whether this HandleSerializationEventArgs is handled.
Gets or sets a value indicating whether this HandleSerializationEventArgs is handled.
Gets the type in the inheritance of the item that should be used for serialization.
Gets the type in the inheritance of the item that should be used for serialization.
readonlyfinal
Property Value
The type of the serialization or
null if the type should be inferred from the item.Gets the writer for writing the XML output.
Gets the writer for writing the XML output.
readonlyfinal
Property Value
The writer that writes the GraphML XML.
Methods
Replaces the item using a substitute for serialization.
Replaces the item using a substitute for serialization.
This method can be used to replace the item and sourceType property so that the serialization chain can be traversed with a substituted item. If this method has been called, the handled property should not be set to
true.final
Parameters
- item: any
- The substitute to assign to the item property.
- serializationType: Constructor
- The serialization type to assign to the sourceType property.