BinaryFormatter.Context Property

Definition

获取或设置此格式化程序的 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

Property Value

StreamingContext

要与此格式化程序一起使用的流上下文。The streaming context to use with this formatter.

Implements

Remarks

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.

Applies to

See also