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

屬性值

資料流內容,要與這個格式子一起使用。

實作

備註

警告

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

StreamingContext提供列舉,描述指定序列化資料流程的來源和目的地,以及用來保留該內容和其他呼叫端定義內容的方法。

適用於

另請參閱