Infosys在阅读器中打开 / AI 翻译

TE2000 | HMI Engineering · 0 次阅读

JsonSchemaContractResolver(IContractResolver, IContractResolver) Constructor

Initializes a new instance of the JsonSchemaContractResolver class with the specified IContractResolver s.


Namespace: TcHmiSrv.Core.Tools.DynamicSymbols
Assembly: TcHmiSrvExtNet.Core (in TcHmiSrvExtNet.Core.dll) Version: 3.1.7447.0+85f9b473a1dd11b8f3e5c9a182fd1901975e46f9

Syntax

C#

public JsonSchemaContractResolver(
    IContractResolver preContractResolver,
    IContractResolver postContractResolver
)

Parameters

preContractResolver  IContractResolver

An IContractResolver that is used to resolve a JsonContract for a given Type before JsonSchemaContractResolver tries to resolve the JsonContract . -or- null to use the resolving mechanism of JsonSchemaContractResolver. The resolving mechanism of JsonSchemaContractResolver is also used if IContractResolver.ResolveContract(Type) returns null.

postContractResolver  IContractResolver

An IContractResolver that is used to resolve a JsonContract for a given Type after JsonSchemaContractResolver tried to resolve the JsonContract . -or- null to use the resolving mechanism of DefaultContractResolver . The resolving mechanism of DefaultContractResolver is also used if IContractResolver.ResolveContract(Type) returns null.

Version Information

Supported in: 3.1.7447.0, 2.3.7447.0, 1.10.7447.0