Partager via


StreamingContext.State Property

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Gets the source or destination of the transmitted data.

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

Syntax

'Declaration
Public ReadOnly Property State As StreamingContextStates
public StreamingContextStates State { get; }

Property Value

Type: System.Runtime.Serialization.StreamingContextStates
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 is CrossProcess. During deserialization, the state indicates the source of the deserialized stream.

Version Information

Silverlight

Supported in: 5, 4

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.