Context Property
Collapse the table of content
Expand the table of content

IFormatter.Context Property

 

Gets or sets the StreamingContext used for serialization and deserialization.

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

StreamingContext Context { get; set; }

Property Value

Type: System.Runtime.Serialization.StreamingContext

The StreamingContext used for serialization and deserialization.

The value of this property is passed to any object implementing ISerializable or ISerializationSurrogate. The StreamingContext indicates the destination (during serialization) or the source (during deserialization) of the data. An object implementing ISerializable can alter the data that it transmits depending on value of the Context.

.NET Framework
Available since 1.1
Return to top
Show:
© 2016 Microsoft