JsonSerializerContext(JsonSerializerOptions) Constructor
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.
Creates an instance of JsonSerializerContext and binds it with the indicated JsonSerializerOptions.
protected:
JsonSerializerContext(System::Text::Json::JsonSerializerOptions ^ options);
protected JsonSerializerContext (System.Text.Json.JsonSerializerOptions? options);
new System.Text.Json.Serialization.JsonSerializerContext : System.Text.Json.JsonSerializerOptions -> System.Text.Json.Serialization.JsonSerializerContext
Protected Sub New (options As JsonSerializerOptions)
Parameters
- options
- JsonSerializerOptions
The run time provided options for the context instance.
Remarks
If no instance options are passed, then no options are set until the context is bound using AddContext<TContext>() or until Options is called, where a new options instance is created and bound.
Applies to
Surađujte s nama na GitHubu
Izvor za ovaj sadržaj možete pronaći na GitHubu, gdje možete stvarati i pregledavati probleme i zahtjeve za povlačenjem. Dodatne informacije potražite u našem vodiču za suradnike.