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

属性值

用于当前序列化的 StreamingContextThe 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. 它不会影响默认序列化,但会作为参数传递给ISerializable和。 ISerializationSurrogateIt 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.

适用于