RelationshipManager.OnSerializing Method (StreamingContext)


Called by Object Services to prepare an EntityKey for binary serialization with a serialized relationship.

Namespace:   System.Data.Objects.DataClasses
Assembly:  System.Data.Entity (in System.Data.Entity.dll)

public void OnSerializing(
	StreamingContext context


Type: System.Runtime.Serialization.StreamingContext

Describes the source and destination of a given serialized stream, and provides an additional caller-defined context.

Serialization of relationships is only supported for binary serialization. Complete object graphs, including relationships, is not supported for Windows Communication Foundation and XML serialization. For more information, see Serializing Objects.

.NET Framework
Available since 3.5
Return to top