System.Runtime.Serialization.StreamingContext Structure

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

See Also: StreamingContext Members

Syntax

[System.Runtime.InteropServices.ComVisible(true)]
public struct StreamingContext

Remarks

Indicates the source or destination of the bits that the formatter uses. Classes with surrogates or that implement System.Runtime.Serialization.ISerializable can serialize or ignore fields and values based on the information stored in the streaming context. For example, a window handle is still valid if the StreamingContext.State property is set to System.Runtime.Serialization.StreamingContextStates.CrossProcess.

Requirements

Namespace: System.Runtime.Serialization
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0