Determines whether a specific string is in the StringTable.
[Visual Basic] Overridable Public Function Contains( _ ByVal key As String _ ) As Boolean [C#] public virtual bool Contains( string key ); [C++] public: virtual bool Contains( String* key ); [JScript] public function Contains( key : String ) : Boolean;
true if key is in the StringTable; otherwise, false.
Exception Type | Condition |
---|---|
ArgumentNullException | key is a null reference (in Visual Basic Nothing). |
This method can be overridden by a derived class.
This method is an O(1) operation.
StringTable Class | StringTable Members | System.Collections Namespace | String