JsonSerializerContext Class
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.
Provides metadata about a set of types that is relevant to JSON serialization.
public ref class JsonSerializerContext abstract
public ref class JsonSerializerContext abstract : System::Text::Json::Serialization::Metadata::IJsonTypeInfoResolver
public abstract class JsonSerializerContext
public abstract class JsonSerializerContext : System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver
type JsonSerializerContext = class
type JsonSerializerContext = class
interface IJsonTypeInfoResolver
Public MustInherit Class JsonSerializerContext
Public MustInherit Class JsonSerializerContext
Implements IJsonTypeInfoResolver
- Inheritance
-
JsonSerializerContext
- Implements
Json |
Creates an instance of JsonSerializerContext and binds it with the indicated JsonSerializerOptions. |
Generated |
Gets the default run-time options for the context. |
Options |
Gets the run-time specified options of the context. If no options were passed when instantiating the context, then a new instance is bound and returned. |
Equals(Object) |
Determines whether the specified object is equal to the current object. (Inherited from Object) |
Get |
Serves as the default hash function. (Inherited from Object) |
Get |
Gets the Type of the current instance. (Inherited from Object) |
Get |
Gets metadata for the specified type. |
Memberwise |
Creates a shallow copy of the current Object. (Inherited from Object) |
To |
Returns a string that represents the current object. (Inherited from Object) |
IJson |
Resolves a JsonTypeInfo contract for the requested type and options. |
With |
Creates a resolver and applies modifications to the metadata generated by the source |
Product | Versions |
---|---|
.NET | 6, 7, 8 (package-provided), 8, 9 (package-provided), 9 |
.NET Framework | 4.7 (package-provided), 4.7.1 (package-provided), 4.7.2 (package-provided), 4.8 (package-provided) |
.NET Standard | 2.0 (package-provided) |
.NET feedback
.NET is an open source project. Select a link to provide feedback: