IJsonTypeInfoResolver.GetTypeInfo(Type, JsonSerializerOptions) Method
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.
Resolves a JsonTypeInfo contract for the requested type and options.
public:
System::Text::Json::Serialization::Metadata::JsonTypeInfo ^ GetTypeInfo(Type ^ type, System::Text::Json::JsonSerializerOptions ^ options);
public System.Text.Json.Serialization.Metadata.JsonTypeInfo? GetTypeInfo (Type type, System.Text.Json.JsonSerializerOptions options);
abstract member GetTypeInfo : Type * System.Text.Json.JsonSerializerOptions -> System.Text.Json.Serialization.Metadata.JsonTypeInfo
Public Function GetTypeInfo (type As Type, options As JsonSerializerOptions) As JsonTypeInfo
Parameters
- type
- Type
Type to be resolved.
- options
- JsonSerializerOptions
Configuration used when resolving the metadata.
Returns
A JsonTypeInfo instance matching the requested type, or null
if no contract could be resolved.
Applies to
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.