TcHmiJSchemaGenerator.GetGenerationProvider Method (Type, JSchemaGenerator)

Gets a JSchemaGenerationProvider from the JSchemaGenerator.GenerationProviders of the specified JSchemaGenerator that can generate a JSchema for the specified Type.

Namespace:  TcHmiSrv.Core.Tools.DynamicSymbols
Assembly:  TcHmiSrvExtNet.Core (in TcHmiSrvExtNet.Core.dll) Version: 1.3.0.0

Syntax

C#

public static JSchemaGenerationProvider GetGenerationProvider(
    Type objectType,
    JSchemaGenerator generator
)

Parameters

objectType

Type: System.Type
The Type to generate a JSchema from.

generator

Type: JSchemaGenerator
A JSchemaGenerator from which to select a JSchemaGenerationProvider that can generate a JSchema for objectType.

Return Value

Type: JSchemaGenerationProvider
A JSchemaGenerationProvider from generator that can generate a JSchema for objectType, if found; otherwise, null.

Reference

TcHmiJSchemaGenerator Class

GetGenerationProvider Overload

TcHmiSrv.Core.Tools.DynamicSymbols Namespace