Table of Contents

Constructor Command

Namespace
LMKit.Speech.Dictation
Assembly
LM-Kit.NET.dll

Command(IEnumerable<string>, string, string)

Initializes a new instance of the Command class.

public Command(IEnumerable<string> spokenForms, string replacement, string descriptionKey)

Parameters

spokenForms IEnumerable<string>

The regex patterns representing spoken forms of the command.

replacement string

The text replacement for this command.

descriptionKey string

The resource key for the command description.

Exceptions

ArgumentNullException

Thrown when spokenForms, replacement, or descriptionKey is null.

ArgumentException

Thrown when spokenForms is empty or descriptionKey is empty or whitespace.