Export (0) Print
Expand All

StreamingContext.State Property

Gets the source or destination of the transmitted data.

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

Property Value

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

Remarks

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.

Requirements

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

Show:
© 2015 Microsoft