JsonSourceGenerationOptionsAttribute Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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()
Initializes a new instance of JsonSourceGenerationOptionsAttribute.
public:
JsonSourceGenerationOptionsAttribute();
public JsonSourceGenerationOptionsAttribute ();
Public Sub New ()
Applies to
JsonSourceGenerationOptionsAttribute(JsonSerializerDefaults)
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.