Formatter::Context Property

 

When overridden in a derived class, gets or sets the StreamingContext used for the current serialization.

Namespace:   System.Runtime.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::StreamingContext

The StreamingContext used for the current serialization.

The 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
Return to top
Show: