Adds a string to the StringTable.
[Visual Basic] Overridable Public Sub Add( _ ByVal key As String _ ) [C#] public virtual void Add( string key ); [C++] public: virtual void Add( String* key ); [JScript] public function Add( key : String );
None.
Exception Type | Condition |
---|---|
ArgumentNullException | key is a null reference (in Visual Basic Nothing). |
This method can be overridden by a derived class.
If key is already in the StringTable, the default implementation replaces the existing string.
StringTable Class | StringTable Members | System.Collections Namespace | String