IFormatter.Context Property

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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: