Share via


BinaryFormatter.Context Vlastnost

Definice

Získá nebo nastaví StreamingContext pro tento formátovací modul.

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

Hodnota vlastnosti

Kontext streamování, který se má použít s tímto formátovačem.

Implementuje

Poznámky

Upozornění

BinaryFormatter je nezabezpečený a nedá se zabezpečit. Další informace najdete v průvodci zabezpečením BinaryFormatter.

Poskytuje StreamingContext výčet, který popisuje zdroj a cíl pro daný serializovaný datový proud, stejně jako způsob serializace zachovat tento kontext a další kontext definovaný volajícím.

Platí pro

Viz také