Determines whether the IStringStringDictionary
contains the specified String key.
Namespace: CodeSmith.CustomPropertiesAssembly: CodeSmith.CustomProperties (in CodeSmith.CustomProperties.dll) Version: 6.0.0.0 (7.0.0.15127)
Syntax
C# |
---|
bool Contains( string key ) |
Visual Basic |
---|
Function Contains ( key As String ) As Boolean |
Parameters
- key
- Type: System..::..String
The String key to locate in the IStringStringDictionary.
Return Value
Type: Booleantrue if the IStringStringDictionary contains an element with the specified key; otherwise, false.
Remarks
Please refer to Contains(Object) for details.
Exceptions
Exception | Condition |
---|---|
System..::..ArgumentNullException | key is a null reference. |
System..::..InvalidOperationException | The comparer throws an exception. |