TcHmiJSchemaGenerator.CreateEnumGenerationProvider Method

Creates a new JSchemaGenerationProvider for the specified Type where IsEnum is true.

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

Syntax

C#

public static JSchemaGenerationProvider CreateEnumGenerationProvider(
    Type enumType,
    bool hasDefault
)

Parameters

enumType

Type: System.Type
The Type for which to create a new JSchemaGenerationProvider. -or- null to create new JSchemaGenerationProvider for all Types where IsEnum is true.

hasDefault

Type: System.Boolean
true if the JSchema created by the returned JSchemaGenerationProvider should contain a default value which will be the first constant in the enumeration; otherwise, false.

Return Value

Type: JSchemaGenerationProvider
A new JSchemaGenerationProvider for enumType.

Reference

TcHmiJSchemaGenerator Class

TcHmiSrv.Core.Tools.DynamicSymbols Namespace