BinaryFormatter.Context Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets or sets the StreamingContext for this formatter.
public:
property System::Runtime::Serialization::StreamingContext Context { System::Runtime::Serialization::StreamingContext get(); void set(System::Runtime::Serialization::StreamingContext value); };
public System.Runtime.Serialization.StreamingContext Context { get; set; }
member this.Context : System.Runtime.Serialization.StreamingContext with get, set
Public Property Context As StreamingContext
Property Value
The streaming context to use with this formatter.
Implements
Remarks
Warning
BinaryFormatter
is insecure and can't be made secure. For more information, see the BinaryFormatter security guide.
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.