A value class that provides two features: a simple enumeration that describes the source and/or destination for a given serialized stream; and a means for serialization to remember that context, plus an additional caller-defined context.
Object
ValueType
StreamingContext
[Visual Basic] Public Structure StreamingContext [C#] public struct StreamingContext [C++] public __value struct StreamingContext
[JScript] In JScript, you can use the structures in the NGWS frameworks, but you cannot define your own.
This type is used to indicate the source or destination of the bits, which the formatter is using. Classes with surrogates or implementing ISerializable can make certain assumptions based on the streaming context. For example, a window handle would still be valid if State had the State value CrossProcess set, but certainly not with the CrossMachine or File value set.
Namespace: System.Runtime.Serialization
Assembly: mscorlib.dll
StreamingContext Members | System.Runtime.Serialization Namespace | State