FormatterServices 类

定义

注意

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

提供静态方法来帮助实现 Formatter 序列化。 此类不能被继承。

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
继承
FormatterServices
属性

方法

名称 说明
CheckTypeSecurity(Type, TypeFilterLevel)
已过时.

确定是否可以使用属性设置为 反序列化指定的值。

GetObjectData(Object, MemberInfo[])
已过时.

从指定对象中提取数据,并将其作为对象数组返回。

GetSafeUninitializedObject(Type)
已过时.

创建指定对象类型的新实例。

GetSerializableMembers(Type, StreamingContext)
已过时.

获取指定 Type 类和提供的 StreamingContext类的所有可序列化成员。

GetSerializableMembers(Type)
已过时.

获取指定 Type类的所有可序列化成员。

GetSurrogateForCyclicalReference(ISerializationSurrogate)
已过时.

返回指定 ISerializationSurrogate项的序列化代理项。

GetTypeFromAssembly(Assembly, String)
已过时.

查找 Type 提供的 Assembly指定对象。

GetUninitializedObject(Type)
已过时.

创建指定对象类型的新实例。

PopulateObjectMembers(Object, MemberInfo[], Object[])
已过时.

使用从对象数据数组绘制的每个字段的值填充指定的对象。

适用于

另请参阅