Formatter::Context Property
.NET Framework (current version)
When overridden in a derived class, gets or sets the StreamingContext used for the current serialization.
Assembly: mscorlib (in mscorlib.dll)
public: property StreamingContext Context { virtual StreamingContext get() abstract; virtual void set(StreamingContext value) abstract; }
Property Value
Type: System.Runtime.Serialization::StreamingContextThe StreamingContext used for the current serialization.
Implements
IFormatter::ContextThe StreamingContext is an indication of either the source of the bits being deserialized or the destination of the bits being serialized. It has no impact on default serialization, but is passed as an argument to ISerializable and ISerializationSurrogate.
Notes to Inheritors:
You must implement this property in a derived class.
.NET Framework
Available since 1.1
Available since 1.1
Show: