Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
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

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0, 1.1

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Show:
© 2015 Microsoft