System.Threading.ExecutionContext.GetObjectData Method

Sets the specified System.Runtime.Serialization.SerializationInfo object with the logical context information needed to recreate an instance of the current execution context.

Syntax

public void GetObjectData (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context)

Parameters

info
The System.Runtime.Serialization.SerializationInfo object to be populated with serialization information.
context
The System.Runtime.Serialization.StreamingContext structure representing the destination context of the serialization.

Remarks

ExecutionContext.GetObjectData(System.Runtime.Serialization.SerializationInfo, System.Runtime.Serialization.StreamingContext) sets a System.Runtime.Serialization.SerializationInfo with the logical call context information. During deserialization, the execution context object is reconstituted from the System.Runtime.Serialization.SerializationInfo transmitted over the stream.

For more information, see System.Runtime.Serialization.SerializationInfo.

Requirements

Namespace: System.Threading
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 2.0.0.0, 4.0.0.0
Since: .NET 2.0