BinaryFormatter.Context 屬性

定義

取得或設定 StreamingContext 這個格式化器。

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

屬性值

使用這個格式化器的串流上下文。

實作

備註

Warning

BinaryFormatter 不安全且無法確保安全。 如需詳細資訊,請參閱 BinaryFormatter 安全性指南

提供 StreamingContext 一個列舉,描述特定序列化串流的來源與目的地,並提供序列化保留該上下文及額外呼叫者定義上下文的方法。

適用於

另請參閱