ISerializationSurrogate Arabirim

Tanım

Dikkat

Formatter-based serialization is obsolete and should not be used.

Bir nesnenin başka bir nesnenin seri hale getirilmesini ve seri durumdan çıkarılmasını sağlayan bir serileştirme vekil seçicisi uygular.

public interface class ISerializationSurrogate
public interface ISerializationSurrogate
[System.Obsolete("Formatter-based serialization is obsolete and should not be used.", DiagnosticId="SYSLIB0050", UrlFormat="https://aka.ms/dotnet-warnings/{0}")]
public interface ISerializationSurrogate
[System.Runtime.InteropServices.ComVisible(true)]
public interface ISerializationSurrogate
type ISerializationSurrogate = interface
[<System.Obsolete("Formatter-based serialization is obsolete and should not be used.", DiagnosticId="SYSLIB0050", UrlFormat="https://aka.ms/dotnet-warnings/{0}")>]
type ISerializationSurrogate = interface
[<System.Runtime.InteropServices.ComVisible(true)>]
type ISerializationSurrogate = interface
Public Interface ISerializationSurrogate
Öznitelikler

Yöntemler

GetObjectData(Object, SerializationInfo, StreamingContext)
Geçersiz.

Sağlanan SerializationInfo öğesini, nesneyi seri hale getirmek için gereken verilerle doldurur.

SetObjectData(Object, SerializationInfo, StreamingContext, ISurrogateSelector)
Geçersiz.

içindeki bilgileri SerializationInfokullanarak nesnesini doldurur.

Şunlara uygulanır