Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

BinaryFormatter::Context Property

 

Gets or sets the StreamingContext for this formatter.

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

public:
property StreamingContext Context {
	virtual StreamingContext get() sealed;
	virtual void set(StreamingContext value) sealed;
}

Property Value

Type: System.Runtime.Serialization::StreamingContext

The streaming context to use with this formatter.

The StreamingContext provides an enumeration that describes the source and the destination for a given serialized stream, as well as a way for serialization to retain that context and an additional caller-defined context.

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