Reflection
AddEntry Method
Example 


The typed abbreviation.
The definition, or expanded form, of the new dictionary entry.
Adds a key-value pair to the Auto Expand dictionary.
Syntax
'Declaration
 
Sub AddEntry( _
   ByVal abbreviation As String, _
   ByVal expansion As String _
) 
'Usage
 
Dim instance As IAutoExpand
Dim abbreviation As String
Dim expansion As String
 
instance.AddEntry(abbreviation, expansion)
void AddEntry( 
   string abbreviation,
   string expansion
)

Parameters

abbreviation
The typed abbreviation.
expansion
The definition, or expanded form, of the new dictionary entry.
Exceptions
ExceptionDescription
System.ArgumentNullException This exception is thrown if either of the input parameters are null (or in Visual Basic, are Nothing).
Remarks
Updates the current entry, if one exists.
Example
AutoExpandDefinition autoExpandDef;
string strAbb = autoExpandDef.Abbreviation;
string strExp = autoExpandDef.Expansion;
AddEntry(strAbb,strExp);
See Also