JsonSourceGenerationOptionsAttribute クラス

定義

指定したオプションが を介して JsonSerializerOptions実行時に使用されることを想定するように System.Text.Json ソース ジェネレーターに指示します。

public ref class JsonSourceGenerationOptionsAttribute sealed : System::Text::Json::Serialization::JsonAttribute
[System.AttributeUsage(System.AttributeTargets.Class, AllowMultiple=false)]
public sealed class JsonSourceGenerationOptionsAttribute : System.Text.Json.Serialization.JsonAttribute
[<System.AttributeUsage(System.AttributeTargets.Class, AllowMultiple=false)>]
type JsonSourceGenerationOptionsAttribute = class
    inherit JsonAttribute
Public NotInheritable Class JsonSourceGenerationOptionsAttribute
Inherits JsonAttribute
継承
JsonSourceGenerationOptionsAttribute
属性

コンストラクター

JsonSourceGenerationOptionsAttribute()

JsonSourceGenerationOptionsAttribute の新しいインスタンスを初期化します。

JsonSourceGenerationOptionsAttribute(JsonSerializerDefaults)

指定された JsonSourceGenerationOptionsAttribute によって決定されるオプションの定義済みのセットを使用して、JsonSerializerDefaults の新しいインスタンスを構築します。

プロパティ

AllowOutOfOrderMetadataProperties

指定したオプションが を介して JsonSerializerOptions実行時に使用されることを想定するように System.Text.Json ソース ジェネレーターに指示します。

AllowTrailingCommas

AllowTrailingCommas の既定値を取得または設定します。

Converters

Converters の既定値を取得または設定します。

DefaultBufferSize

DefaultBufferSize の既定値を取得または設定します。

DefaultIgnoreCondition

既定の無視条件を取得または設定します。

DictionaryKeyPolicy

DictionaryKeyPolicy の既定値を取得または設定します。

GenerationMode

モードを で明示的に設定しない型のソース生成モード GenerationModeを取得または設定します。

IgnoreReadOnlyFields

読み取り専用フィールドを無視するかどうかを示す値を取得または設定します。

IgnoreReadOnlyProperties

読み取り専用プロパティを無視するかどうかを示す値を取得または設定します。

IncludeFields

シリアル化と逆シリアル化のフィールドを含めるかどうかを示す値を取得または設定します。

IndentCharacter

指定したオプションが を介して JsonSerializerOptions実行時に使用されることを想定するように System.Text.Json ソース ジェネレーターに指示します。

IndentSize

指定したオプションが を介して JsonSerializerOptions実行時に使用されることを想定するように System.Text.Json ソース ジェネレーターに指示します。

MaxDepth

MaxDepth の既定値を取得または設定します。

NumberHandling

NumberHandling の既定値を取得または設定します。

PreferredObjectCreationHandling

PreferredObjectCreationHandling の既定値を取得または設定します。

PropertyNameCaseInsensitive

PropertyNameCaseInsensitive の既定値を取得または設定します。

PropertyNamingPolicy

JSON プロパティ名を変換する組み込みの名前付けポリシーを取得または設定します。

ReadCommentHandling

ReadCommentHandling の既定値を取得または設定します。

TypeId

派生クラスで実装されると、この Attribute の一意の識別子を取得します。

(継承元 Attribute)
UnknownTypeHandling

UnknownTypeHandling の既定値を取得または設定します。

UnmappedMemberHandling

UnmappedMemberHandling の既定値を取得または設定します。

UseStringEnumConverter

ソース ジェネレーターの型グラフで検出されたすべての列挙型の数値シリアル化ではなく、ソース ジェネレーターが既定で に JsonStringEnumConverter 設定されているかどうかを示す値を取得または設定します。

WriteIndented

JSON 出力が適切に出力されるかどうかを示す値を取得または設定します。

メソッド

Equals(Object)

このインスタンスが、指定されたオブジェクトと等価であるかどうかを示す値を返します。

(継承元 Attribute)
GetHashCode()

このインスタンスのハッシュ コードを返します。

(継承元 Attribute)
GetType()

現在のインスタンスの Type を取得します。

(継承元 Object)
IsDefaultAttribute()

派生クラスでオーバーライドされるとき、このインスタンスの値が派生クラスの既定値であるかどうかを示します。

(継承元 Attribute)
Match(Object)

派生クラス内でオーバーライドされたときに、指定したオブジェクトとこのインスタンスが等しいかどうかを示す値を返します。

(継承元 Attribute)
MemberwiseClone()

現在の Object の簡易コピーを作成します。

(継承元 Object)
ToString()

現在のオブジェクトを表す文字列を返します。

(継承元 Object)

明示的なインターフェイスの実装

_Attribute.GetIDsOfNames(Guid, IntPtr, UInt32, UInt32, IntPtr)

一連の名前を対応する一連のディスパッチ識別子に割り当てます。

(継承元 Attribute)
_Attribute.GetTypeInfo(UInt32, UInt32, IntPtr)

オブジェクトの型情報を取得します。この情報はインターフェイスの型情報の取得に使用できます。

(継承元 Attribute)
_Attribute.GetTypeInfoCount(UInt32)

オブジェクトが提供する型情報インターフェイスの数 (0 または 1) を取得します。

(継承元 Attribute)
_Attribute.Invoke(UInt32, Guid, UInt32, Int16, IntPtr, IntPtr, IntPtr, IntPtr)

オブジェクトによって公開されたプロパティおよびメソッドへのアクセスを提供します。

(継承元 Attribute)

適用対象