TcHmiJSchemaGenerator.GetGenerationProvider Method (Type, IEnumerable.JSchemaGenerationProvider.)

Gets a JSchemaGenerationProvider from the specified IEnumerable.T. of JSchemaGenerationProviders 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,
    IEnumerable<JSchemaGenerationProvider> generationProviders
)

Parameters

objectType

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

generationProviders

Type: System.Collections.Generic.IEnumerable.JSchemaGenerationProvider.
An IEnumerable.T. of JSchemaGenerationProvider from which to select a JSchemaGenerationProvider that can generate a JSchema for objectType.

Return Value

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

Reference

TcHmiJSchemaGenerator Class

GetGenerationProvider Overload

TcHmiSrv.Core.Tools.DynamicSymbols Namespace