Adds the specified pair of alias and associated text to this instance of the AliasDictionary.
publicvoidAdd(stringalias,stringtext)
Parameter
Type
Description
alias
String
The alias to add to the dictionary.
text
String
The text to be associated with the alias.
Exceptions
exception
condition
ArgumentNullException
Thrown when alias or text is null.
ArgumentException
Thrown when the alias contains a character that is not from the ranges a-z and 0-9, or the text is empty, consists of white space, or contains a line break or an unpaired surrogate.