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
discriminatorValuestringA discriminator value; cannot be
nullor empty, nor declared twice.allowedValuesIEnumerable<string>The values allowed under that discriminator value; cannot be
nullor empty.
Exceptions
- ArgumentException
Thrown when
discriminatorValueisnull, empty, or already declared, or whenallowedValuesisnullor empty.