Search Results for

    Show / Hide Table of Contents
    View Source

    Class UmbracoJsonTypeInfoResolver

    Inheritance
    System.Object
    System.Text.Json.Serialization.Metadata.DefaultJsonTypeInfoResolver
    Namespace: Umbraco.Cms.Api.Common.Serialization
    Assembly: Umbraco.Cms.Api.Common.dll
    Syntax
    public sealed class UmbracoJsonTypeInfoResolver : DefaultJsonTypeInfoResolver, IUmbracoJsonTypeInfoResolver, IJsonTypeInfoResolver

    Constructors

    View Source

    UmbracoJsonTypeInfoResolver(ITypeFinder)

    Declaration
    public UmbracoJsonTypeInfoResolver(ITypeFinder typeFinder)
    Parameters
    Type Name Description
    ITypeFinder typeFinder

    Methods

    View Source

    FindSubTypes(Type)

    Declaration
    public IEnumerable<Type> FindSubTypes(Type type)
    Parameters
    Type Name Description
    Type type
    Returns
    Type Description
    IEnumerable<Type>
    View Source

    GetTypeDiscriminatorValue(Type)

    Declaration
    public string GetTypeDiscriminatorValue(Type type)
    Parameters
    Type Name Description
    Type type
    Returns
    Type Description
    System.String
    View Source

    GetTypeInfo(Type, JsonSerializerOptions)

    Declaration
    public override JsonTypeInfo GetTypeInfo(Type type, JsonSerializerOptions options)
    Parameters
    Type Name Description
    Type type
    System.Text.Json.JsonSerializerOptions options
    Returns
    Type Description
    System.Text.Json.Serialization.Metadata.JsonTypeInfo
    • Improve this Doc
    • View Source
    In This Article
    • Constructors
      • UmbracoJsonTypeInfoResolver(ITypeFinder)
    • Methods
      • FindSubTypes(Type)
      • GetTypeDiscriminatorValue(Type)
      • GetTypeInfo(Type, JsonSerializerOptions)
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX