Table of Contents

Method Add

Namespace
LMKit.Extraction
Assembly
LM-Kit.NET.dll

Add(string, IEnumerable<string>)

Declares the values allowed on the dependent element when the discriminator holds discriminatorValue.

public void Add(string discriminatorValue, IEnumerable<string> allowedValues)

Parameters

discriminatorValue string

A discriminator value; cannot be null or empty, nor declared twice.

allowedValues IEnumerable<string>

The values allowed under that discriminator value; cannot be null or empty.

Exceptions

ArgumentException

Thrown when discriminatorValue is null, empty, or already declared, or when allowedValues is null or empty.

Share