FormatterServices 類別

定義

警告

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

提供靜態方法,協助序列化 (Serialization) Formatter 的實作。 此類別無法獲得繼承。

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
繼承
FormatterServices
屬性

方法

CheckTypeSecurity(Type, TypeFilterLevel)
已淘汰.

判斷 Type 屬性設為 Low 時是否可還原序列化指定的 TypeFilterLevel

GetObjectData(Object, MemberInfo[])
已淘汰.

從指定物件擷取資料,並將它傳回為物件陣列。

GetSafeUninitializedObject(Type)
已淘汰.

建立指定物件型別的新執行個體。

GetSerializableMembers(Type)
已淘汰.

為指定 Type 的類別取得所有可序列化成員。

GetSerializableMembers(Type, StreamingContext)
已淘汰.

為指定 Type 的類別,並在所提供的 StreamingContext 中,取得所有可序列化成員。

GetSurrogateForCyclicalReference(ISerializationSurrogate)
已淘汰.

傳回指定之 ISerializationSurrogate 的序列化代理。

GetTypeFromAssembly(Assembly, String)
已淘汰.

在所提供的 Type 中查詢指定物件的 Assembly

GetUninitializedObject(Type)
已淘汰.

建立指定物件型別的新執行個體。

PopulateObjectMembers(Object, MemberInfo[], Object[])
已淘汰.

將取自物件資料陣列每個欄位的值填入指定物件。

適用於

另請參閱