Name

StreamingContext

Synopsis

This class describes the source or destination of a serialized stream. The context can determine how classes are serialized and require special parsing during deserialization. The State property holds a value from StreamingContextStates that indicates the destination of object data during serialization and the source of data during deserialization. This could indicate that you are serializing data to a file, for example, or deserializing data that came from another process.

Public Structure StreamingContext
                  ' Public Constructors
   Public Sub New( ByVal state As StreamingContextStates) 
   Public Sub New(ByVal state As StreamingContextStates, 
        ByVal additional As Object) 
' Public Instance Properties
   Public ReadOnly Property Context As Object  
   Public ReadOnly Property State As StreamingContextStates  
' Public Instance Methods
   Overrides Public Function Equals(
        ByVal obj As Object) As Boolean  
   Overrides Public Function GetHashCode() As Integer  
End Structure

Hierarchy

System.ObjectSystem.ValueType StreamingContext

Returned By

Formatter.Context, System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Context, System.Runtime.Serialization.Formatters.Soap.SoapFormatter.Context, IFormatter.Context

Passed To

Multiple types

Get VB.NET Core Classes in a Nutshell now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.