StreamingContext::State Property

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Gets the source or destination of the transmitted data.

Namespace:   System.Runtime.Serialization
Assembly:  mscorlib (in mscorlib.dll)

public:
property StreamingContextStates State {
	StreamingContextStates get();
}

Property Value

Type: System.Runtime.Serialization::StreamingContextStates

During serialization, the destination of the transmitted data. During deserialization, the source of the data.

During serialization, the current property specifies the destination of the transmitted data. For example, when serializing data from cross-AppDomain remoting, the StreamingContextStates is CrossProcess. During deserialization, the state indicates the source of the deserialized stream.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 1.1
Silverlight
Available since 4.0
Return to top
Show: