FormatterServices Třída

Definice

Upozornění

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

Poskytuje statické metody, které pomáhají s implementací Formatter serializace. Tato třída se nemůže dědit.

public ref class FormatterServices abstract sealed
public ref class FormatterServices sealed
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}")]
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
type FormatterServices = class
[<System.Obsolete("Formatter-based serialization is obsolete and should not be used.", DiagnosticId="SYSLIB0050", UrlFormat="https://aka.ms/dotnet-warnings/{0}")>]
type FormatterServices = class
[<System.Runtime.InteropServices.ComVisible(true)>]
type FormatterServices = class
Public Class FormatterServices
Public NotInheritable Class FormatterServices
Dědičnost
FormatterServices
Atributy

Metody

CheckTypeSecurity(Type, TypeFilterLevel)
Zastaralé.

Určuje, zda lze zadanou Type hodnotu deserializovat pomocí TypeFilterLevel vlastnosti nastavené na Lowhodnotu .

GetObjectData(Object, MemberInfo[])
Zastaralé.

Extrahuje data ze zadaného objektu a vrátí je jako pole objektů.

GetSafeUninitializedObject(Type)
Zastaralé.

Vytvoří novou instanci zadaného typu objektu.

GetSerializableMembers(Type)
Zastaralé.

Získá všechny serializovatelné členy pro třídu zadané Type.

GetSerializableMembers(Type, StreamingContext)
Zastaralé.

Získá všechny serializovatelné členy pro třídu zadané Type a v zadané StreamingContext.

GetSurrogateForCyclicalReference(ISerializationSurrogate)
Zastaralé.

Vrátí náhradu serializace pro zadaný ISerializationSurrogate.

GetTypeFromAssembly(Assembly, String)
Zastaralé.

Vyhledá Type zadaný objekt v zadaném Assemblyobjektu .

GetUninitializedObject(Type)
Zastaralé.

Vytvoří novou instanci zadaného typu objektu.

PopulateObjectMembers(Object, MemberInfo[], Object[])
Zastaralé.

Naplní zadaný objekt hodnotami pro každé pole vyčerpané z datového pole objektů.

Platí pro

Viz také