Export (0) Print
Expand All

GetObjectData Method

Populates the SerializationInfo with the data needed to serialize the OrderGroup.

Namespace:  Microsoft.CommerceServer.Runtime.Orders
Assembly:  Microsoft.CommerceServer.Runtime (in Microsoft.CommerceServer.Runtime.dll)

[SecurityPermissionAttribute(SecurityAction.Demand, SerializationFormatter = true)]
public virtual void GetObjectData(
	SerializationInfo info,
	StreamingContext context
)

Parameters

info
Type: System.Runtime.Serialization..::.SerializationInfo
The SerializationInfo to populate with data.
context
Type: System.Runtime.Serialization..::.StreamingContext
A StreamingContext containing the context information for this serialization.

Implements

ISerializable..::.GetObjectData(SerializationInfo, StreamingContext)

ExceptionCondition
SerializationException

Serialization of this object could not be completed, possibly because the OrderGroup subtype of the object is unknown.

GetObjectData is virtual to allow extension by a derived class. The derived class must call the base class method to ensure base class members are properly serialized.

GetObjectData sets a SerializationInfo with all the object data targeted for serialization. During deserialization, the object is reconstituted from the SerializationInfo transmitted over the stream.

Show:
© 2015 Microsoft