TcHmiJSchemaGeneratorCreateEnumGenerationProvider 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:
3.1.7447.0+85f9b473a1dd11b8f3e5c9a182fd1901975e46f9
Syntax
C#
public static JSchemaGenerationProvider CreateEnumGenerationProvider(
Type enumType,
bool hasDefault
)Parameters
|
enumType Type |
The Type for which to create a new JSchemaGenerationProvider . -or- null to create new JSchemaGenerationProvider for all Types where IsEnum is true. |
|
hasDefault 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
JSchemaGenerationProvider
A new JSchemaGenerationProvider for
enumType.
Version Information
Supported in: 3.1.7447.0, 2.3.7447.0, 1.10.7447.0
Reference
TcHmiJSchemaGenerator Class TcHmiSrv.Core.Tools.DynamicSymbols Namespace
Copyright © Beckhoff Automation GmbH & Co. KG