BinaryFormatter.Context BinaryFormatter.Context BinaryFormatter.Context BinaryFormatter.Context Property

定義

取得或設定這個格式子的 StreamingContextGets 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

屬性值

資料流內容,要與這個格式子一起使用。The streaming context to use with this formatter.

實作

備註

StreamingContext提供列舉,描述在來源和目的地指定的序列化資料流,以及讓序列化保留該內容和其他呼叫端定義的內容。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.

適用於

另請參閱