FormatterServices 类 
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
注意
Formatter-based serialization is obsolete and should not be used.
提供静态方法,以协助实现用于序列化的 Formatter。 此类不能被继承。
public ref class FormatterServices abstract sealedpublic ref class FormatterServices sealedpublic 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 FormatterServicespublic sealed class FormatterServices[System.Runtime.InteropServices.ComVisible(true)]
public sealed class FormatterServices[System.Runtime.InteropServices.ComVisible(true)]
public static class FormatterServicestype 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 = classPublic Class FormatterServicesPublic NotInheritable Class FormatterServices- 继承
- 
				FormatterServices
- 属性
方法
| CheckTypeSecurity(Type, TypeFilterLevel) | 
				已过时.
			 确定是否能够在 TypeFilterLevel 属性设置为  | 
| GetObjectData(Object, MemberInfo[]) | 
				已过时.
			 从指定对象提取数据并将其以对象数组的形式返回。 | 
| GetSafeUninitializedObject(Type) | 
				已过时.
			 创建指定对象类型的新实例。 | 
| GetSerializableMembers(Type) | 
				已过时.
			 获取指定 Type 的类的所有可序列化成员。 | 
| GetSerializableMembers(Type, StreamingContext) | 
				已过时.
			 获取属于指定 Type 的类且位于提供的 StreamingContext 中的所有可序列化成员。 | 
| GetSurrogateForCyclicalReference(ISerializationSurrogate) | 
				已过时.
			 对指定的 ISerializationSurrogate 返回序列化代理项。 | 
| GetTypeFromAssembly(Assembly, String) | 
				已过时.
			 | 
| GetUninitializedObject(Type) | 
				已过时.
			 创建指定对象类型的新实例。 | 
| PopulateObjectMembers(Object, MemberInfo[], Object[]) | 
				已过时.
			 使用从对象的数据数组中提取的每个字段的值填充指定的对象。 |