Defines a set of flags that specifies the source or destination context for the stream during serialization.
This enumeration has a FlagsAttribute attribute that allows a bitwise combination of its member values.
[Visual Basic] <Flags> <Serializable> Public Enum StreamingContextStates [C#] [Flags] [Serializable] public enum StreamingContextStates [C++] [Flags] [Serializable] __value public enum StreamingContextStates [JScript] public Flags Serializable enum StreamingContextStates
|All||Specifies that the serialized data can be transmitted to or received from any of the other contexts.||255|
|Clone||Specifies that the object graph is being cloned. Users can assume that the cloned graph will continue to exist within the same process and be safe to access handles or other references to unmanaged resources.||64|
|CrossAppDomain||Specifies that the source or destination context is a different AppDomain. (For a description of AppDomains see Application Domains).||128|
|CrossMachine||Specifies that the source or destination context is a different computer.||2|
|CrossProcess||Specifies that the source or destination context is a different process on the same computer.||1|
|File||Specifies that the source or destination context is a file. Users can assume that files will last longer than the process that created them and not serialize objects in such a way that deserialization will require accessing any data from the current process.||4|
|Other||Specifies that the serialization context is unknown.||32|
|Persistence||Specifies that the source or destination context is a persisted store, which could include databases, files, or other backing stores. Users can assume that persisted data will last longer than the process that created the data and not serialize objects so that deserialization will require accessing any data from the current process.||8|
|Remoting||Specifies that the data is remoted to a context in an unknown location. Users cannot make any assumptions whether this is on the same computer.||16|
Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family
Assembly: Mscorlib (in Mscorlib.dll)