FormatterServices Osztály

Definíció

Figyelemfelhívás

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

Statikus módszereket biztosít a szerializálás megvalósításához Formatter . Ez az osztály nem örökölhető.

public ref class FormatterServices abstract sealed
public ref class FormatterServices sealed
[System.Obsolete("Formatter-based serialization is obsolete and should not be used.", DiagnosticId="SYSLIB0050", UrlFormat="https://aka.ms/dotnet-warnings/{0}")]
public static class FormatterServices
public static class FormatterServices
public sealed class FormatterServices
[System.Runtime.InteropServices.ComVisible(true)]
public sealed class FormatterServices
[System.Runtime.InteropServices.ComVisible(true)]
public static class FormatterServices
[<System.Obsolete("Formatter-based serialization is obsolete and should not be used.", DiagnosticId="SYSLIB0050", UrlFormat="https://aka.ms/dotnet-warnings/{0}")>]
type FormatterServices = class
type FormatterServices = class
[<System.Runtime.InteropServices.ComVisible(true)>]
type FormatterServices = class
Public Class FormatterServices
Public NotInheritable Class FormatterServices
Öröklődés
FormatterServices
Attribútumok

Metódusok

Name Description
CheckTypeSecurity(Type, TypeFilterLevel)
Elavult.

Meghatározza, hogy a megadott Type érték deszerializálható-e a TypeFilterLevel következő tulajdonsággal Low: .

GetObjectData(Object, MemberInfo[])
Elavult.

Kinyeri az adatokat a megadott objektumból, és objektumtömbként adja vissza.

GetSafeUninitializedObject(Type)
Elavult.

Létrehoz egy új példányt a megadott objektumtípusból.

GetSerializableMembers(Type, StreamingContext)
Elavult.

Lekéri a megadott Type és a megadott StreamingContextosztály összes szerializálható tagját.

GetSerializableMembers(Type)
Elavult.

Lekéri a megadott Typeosztály összes szerializálható tagját.

GetSurrogateForCyclicalReference(ISerializationSurrogate)
Elavult.

Szerializálási helyettesítőt ad vissza a megadotthoz ISerializationSurrogate.

GetTypeFromAssembly(Assembly, String)
Elavult.

Megkeresi a Type megadott objektumot a megadott Assemblyhelyen.

GetUninitializedObject(Type)
Elavult.

Létrehoz egy új példányt a megadott objektumtípusból.

PopulateObjectMembers(Object, MemberInfo[], Object[])
Elavult.

Kitölti a megadott objektumot az objektumok adattömbje által rajzolt mezők értékeivel.

A következőre érvényes:

Lásd még