Formatter.Serialize(Stream, Object) Metode
Definisi
Penting
Beberapa informasi terkait produk prarilis yang dapat diubah secara signifikan sebelum dirilis. Microsoft tidak memberikan jaminan, tersirat maupun tersurat, sehubungan dengan informasi yang diberikan di sini.
Perhatian
BinaryFormatter serialization is obsolete and should not be used. See https://aka.ms/binaryformatter for more information.
Saat ditimpa dalam kelas turunan, menserialisasikan grafik objek dengan akar yang ditentukan ke aliran yang sudah dilampirkan ke pemformat.
public:
abstract void Serialize(System::IO::Stream ^ serializationStream, System::Object ^ graph);
[System.Obsolete("BinaryFormatter serialization is obsolete and should not be used. See https://aka.ms/binaryformatter for more information.", DiagnosticId="SYSLIB0011", UrlFormat="https://aka.ms/dotnet-warnings/{0}")]
public abstract void Serialize (System.IO.Stream serializationStream, object graph);
public abstract void Serialize (System.IO.Stream serializationStream, object graph);
[<System.Obsolete("BinaryFormatter serialization is obsolete and should not be used. See https://aka.ms/binaryformatter for more information.", DiagnosticId="SYSLIB0011", UrlFormat="https://aka.ms/dotnet-warnings/{0}")>]
abstract member Serialize : System.IO.Stream * obj -> unit
abstract member Serialize : System.IO.Stream * obj -> unit
Public MustOverride Sub Serialize (serializationStream As Stream, graph As Object)
Parameter
- serializationStream
- Stream
Aliran tempat objek diserialisasikan.
- graph
- Object
Objek di akar grafik untuk diserialisasikan.
Penerapan
- Atribut
Catatan Bagi Implementer
Anda harus menerapkan metode ini di kelas turunan.