FormatterServices 類別
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
警告
Formatter-based serialization is obsolete and should not be used.
提供靜態方法以協助序列化 a 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
- 屬性
方法
| 名稱 | Description |
|---|---|
| CheckTypeSecurity(Type, TypeFilterLevel) |
已淘汰.
判斷指定值Type是否可將屬性設TypeFilterLevel為 時反序列化 |
| GetObjectData(Object, MemberInfo[]) |
已淘汰.
從指定物件中擷取資料,並以物件陣列的形式回傳。 |
| GetSafeUninitializedObject(Type) |
已淘汰.
建立指定物件類型的新實例。 |
| GetSerializableMembers(Type, StreamingContext) |
已淘汰.
取得指定 Type 類別中所有可序列化的成員,且包含於所提供的 StreamingContext。 |
| GetSerializableMembers(Type) |
已淘汰.
取得指定 Type類別中所有可序列化的成員。 |
| GetSurrogateForCyclicalReference(ISerializationSurrogate) |
已淘汰.
回傳指定 ISerializationSurrogate序列化代理。 |
| GetTypeFromAssembly(Assembly, String) |
已淘汰.
|
| GetUninitializedObject(Type) |
已淘汰.
建立指定物件類型的新實例。 |
| PopulateObjectMembers(Object, MemberInfo[], Object[]) |
已淘汰.
用從物件資料陣列中抽取的每個欄位的值填充指定的物件。 |