[This is preliminary documentation and is subject to change.]
Gets value indicating wheather metadata value with given key is present in current instance
Namespace: Tools.MetadataTAssembly: Tools.Metadata (in Tools.Metadata.dll) Version: 1.5.3.38916 (1.5.3.38916)
Syntax
| C# |
|---|
bool ContainsKey( string Key ) |
| Visual Basic |
|---|
Function ContainsKey ( _ Key As String _ ) As Boolean |
| Visual C++ |
|---|
bool ContainsKey( String^ Key ) |
| F# |
|---|
abstract ContainsKey : Key:string -> bool |
| JScript |
|---|
function ContainsKey( Key : String ) : boolean |
Parameters
- Key
- Type: System..::..String
Key (or name) to check presence of (see GetPredefinedKeys()()()() for possible values)
Return Value
True when value for given key is present; false otherwise
Remarks
The Key parameter can be either key in metadata-specific format or predefined name of metadata item (if predefined names are supported).
Exceptions
| Exception | Condition |
|---|---|
| System..::..ArgumentException | Key has invalid format and it is not one of predefined names |