英語で読む

次の方法で共有


FormatterServices クラス

定義

注意事項

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

シリアル化のための Formatter の実装で支援する静的メソッドを提供します。 このクラスは継承できません。

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

メソッド

CheckTypeSecurity(Type, TypeFilterLevel)
古い.

指定した Type が、TypeFilterLevel プロパティを Low に設定して逆シリアル化できるかどうかを確認します。

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[])
古い.

指定したオブジェクトに、オブジェクトのデータ配列から抽出された各フィールドの値を設定します。

適用対象

製品 バージョン (廃止)
.NET Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7 (8, 9)
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0, 2.1

こちらもご覧ください