Edit

Share via


JsonSourceGenerationOptionsAttribute Constructors

Definition

Overloads

JsonSourceGenerationOptionsAttribute()

Initializes a new instance of JsonSourceGenerationOptionsAttribute.

JsonSourceGenerationOptionsAttribute(JsonSerializerDefaults)

Constructs a new JsonSourceGenerationOptionsAttribute instance with a predefined set of options determined by the specified JsonSerializerDefaults.

JsonSourceGenerationOptionsAttribute()

Source:
JsonSourceGenerationOptionsAttribute.cs
Source:
JsonSourceGenerationOptionsAttribute.cs
Source:
JsonSourceGenerationOptionsAttribute.cs

Initializes a new instance of JsonSourceGenerationOptionsAttribute.

public:
 JsonSourceGenerationOptionsAttribute();
public JsonSourceGenerationOptionsAttribute ();
Public Sub New ()

Applies to

JsonSourceGenerationOptionsAttribute(JsonSerializerDefaults)

Source:
JsonSourceGenerationOptionsAttribute.cs
Source:
JsonSourceGenerationOptionsAttribute.cs

Constructs a new JsonSourceGenerationOptionsAttribute instance with a predefined set of options determined by the specified JsonSerializerDefaults.

public:
 JsonSourceGenerationOptionsAttribute(System::Text::Json::JsonSerializerDefaults defaults);
public JsonSourceGenerationOptionsAttribute (System.Text.Json.JsonSerializerDefaults defaults);
new System.Text.Json.Serialization.JsonSourceGenerationOptionsAttribute : System.Text.Json.JsonSerializerDefaults -> System.Text.Json.Serialization.JsonSourceGenerationOptionsAttribute
Public Sub New (defaults As JsonSerializerDefaults)

Parameters

defaults
JsonSerializerDefaults

The JsonSerializerDefaults to reason about.

Exceptions

defaults is invalid.

Applies to