This documentation is archived and is not being maintained.

StreamingContext.State Property

Gets the source or destination of the transmitted data.

[Visual Basic]
Public ReadOnly Property State As StreamingContextStates
public StreamingContextStates State {get;}
public: __property StreamingContextStates get_State();
public function get State() : StreamingContextStates;

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 will be CrossProcess. During deserialization, the state indicates the source of the deserialized stream.


Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also

StreamingContext Structure | StreamingContext Members | System.Runtime.Serialization Namespace