Formatter.Context Formatter.Context Formatter.Context Formatter.Context Property

定義

當覆寫於衍生類別時,取得或設定用於目前序列化的 StreamingContextWhen overridden in a derived class, gets or sets the StreamingContext used for the current serialization.

public:
 abstract property System::Runtime::Serialization::StreamingContext Context { System::Runtime::Serialization::StreamingContext get(); void set(System::Runtime::Serialization::StreamingContext value); };
public abstract System.Runtime.Serialization.StreamingContext Context { get; set; }
member this.Context : System.Runtime.Serialization.StreamingContext with get, set
Public MustOverride Property Context As StreamingContext

屬性值

StreamingContext用於目前序列化。The StreamingContext used for the current serialization.

實作

備註

StreamingContext正在還原序列化的位元的來源或目的地正在序列化的位元是其中的指示。The StreamingContext is an indication of either the source of the bits being deserialized or the destination of the bits being serialized. 它預設序列化,沒有任何影響,但做為引數會傳遞ISerializableISerializationSurrogateIt has no impact on default serialization, but is passed as an argument to ISerializable and ISerializationSurrogate.

給繼承者的注意事項

您必須在衍生類別中實作這個屬性。You must implement this property in a derived class.

適用於