FormatterServices Klasa

Definicja

Przestroga

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

Udostępnia metody statyczne ułatwiające implementację Formatter klasy na potrzeby serializacji. Klasa ta nie może być dziedziczona.

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
Dziedziczenie
FormatterServices
Atrybuty

Metody

CheckTypeSecurity(Type, TypeFilterLevel)
Przestarzałe.

Określa, czy określony Type można deserializować za pomocą właściwości ustawionej TypeFilterLevel na Lowwartość .

GetObjectData(Object, MemberInfo[])
Przestarzałe.

Wyodrębnia dane z określonego obiektu i zwraca je jako tablicę obiektów.

GetSafeUninitializedObject(Type)
Przestarzałe.

Tworzy nowe wystąpienie określonego typu obiektu.

GetSerializableMembers(Type)
Przestarzałe.

Pobiera wszystkie składowe z możliwością serializacji dla klasy określonego Typeelementu .

GetSerializableMembers(Type, StreamingContext)
Przestarzałe.

Pobiera wszystkie składowe z możliwością serializacji dla klasy określonej Type i w podanym elemecie StreamingContext.

GetSurrogateForCyclicalReference(ISerializationSurrogate)
Przestarzałe.

Zwraca zastępcę serializacji dla określonego ISerializationSurrogateelementu .

GetTypeFromAssembly(Assembly, String)
Przestarzałe.

Wyszukuje Type określony obiekt w podanym Assemblyobiekcie .

GetUninitializedObject(Type)
Przestarzałe.

Tworzy nowe wystąpienie określonego typu obiektu.

PopulateObjectMembers(Object, MemberInfo[], Object[])
Przestarzałe.

Wypełnia określony obiekt wartościami dla każdego pola pobranego z tablicy danych obiektów.

Dotyczy

Zobacz też