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
[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
Dědičnost
FormatterServices
Atributy

Metody

Name Description
CheckTypeSecurity(Type, TypeFilterLevel)
Zastaralé.

Určuje, zda zadané Type lze deserializovat pomocí TypeFilterLevel vlastnosti nastavena na Low.

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, StreamingContext)
Zastaralé.

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

GetSerializableMembers(Type)
Zastaralé.

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

GetSurrogateForCyclicalReference(ISerializationSurrogate)
Zastaralé.

Vrátí náhradní serializaci 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 nakreslené z datového pole objektů.

Platí pro

Viz také