Table of Contents

Method WithEnumValues

Namespace
Skyline.DataMiner.Utils.DOM.Builders
Assembly
Skyline.DataMiner.Utils.DOM.dll

WithEnumValues(IEnumerable<IGenericEnumEntry>)

Sets the enum values for the field descriptor.

public GenericEnumFieldDescriptorBuilder WithEnumValues(IEnumerable<IGenericEnumEntry> enumEntries)

Parameters

enumEntries IEnumerable<IGenericEnumEntry>

The collection of enum entries to set.

Returns

GenericEnumFieldDescriptorBuilder

The builder instance.

Exceptions

ArgumentNullException

Thrown when enumEntries is null.

NotSupportedException

Thrown when an enum entry type does not match the configured enum type.