JsonSerializerOptions.Web Eigenschap
Definitie
Belangrijk
Bepaalde informatie heeft betrekking op een voorlopige productversie die aanzienlijk kan worden gewijzigd voordat deze wordt uitgebracht. Microsoft biedt geen enkele expliciete of impliciete garanties met betrekking tot de informatie die hier wordt verstrekt.
Hiermee haalt u een alleen-lezen singleton-exemplaar op waarvan JsonSerializerOptions de webconfiguratie wordt gebruikt.
public:
static property System::Text::Json::JsonSerializerOptions ^ Web { System::Text::Json::JsonSerializerOptions ^ get(); };
public static System.Text.Json.JsonSerializerOptions Web { [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] get; }
public static System.Text.Json.JsonSerializerOptions Web { get; }
[<get: System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")>]
[<get: System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")>]
static member Web : System.Text.Json.JsonSerializerOptions
static member Web : System.Text.Json.JsonSerializerOptions
Public Shared ReadOnly Property Web As JsonSerializerOptions
Waarde van eigenschap
- Kenmerken
Opmerkingen
Elk JsonSerializerOptions exemplaar bevat zijn eigen caches voor serialisatiemetagegevens,
Het gebruik van nieuwe standaardexemplaren elke keer dat er een nodig is, kan leiden tot redundante hercomputatie van conversieprogramma's.
Deze eigenschap biedt een gedeeld exemplaar dat kan worden gebruikt door een willekeurig aantal onderdelen zonder dat een conversieprogramma opnieuw hoeft te wordencomputatie vereist.