Export (0) Print
Expand All

BinaryFormatter.Context Property

Gets or sets the StreamingContext for this formatter.

[Visual Basic]
Public Overridable Property Context As StreamingContext  Implements _
   IFormatter.Context
[C#]
public virtual StreamingContext Context {get; set;}
[C++]
public: __property virtual StreamingContext get_Context();
public: __property virtual void set_Context(StreamingContext);
[JScript]
public function get Context() : StreamingContext;
public function set Context(StreamingContext);

Property Value

The streaming context to use with this formatter.

Implements

IFormatter.Context

Remarks

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.

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also

BinaryFormatter Class | BinaryFormatter Members | System.Runtime.Serialization.Formatters.Binary Namespace | StreamingContext

Show:
© 2015 Microsoft