This documentation is archived and is not being maintained.

StreamingContext.State Property

Gets the source or destination of the transmitted data.

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

property StreamingContextStates State {
	StreamingContextStates get ();
/** @property */
public StreamingContextStates get_State ()

public function get State () : StreamingContextStates

Not applicable.

Property Value

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.

Windows 98, Windows Server 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0, 1.1, 1.0