NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

StreamingContext Structure

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.

Remarks

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.

Requirements

Namespace: System.Runtime.Serialization

Assembly: mscorlib.dll

See Also

StreamingContext Members | System.Runtime.Serialization Namespace | State