[This is preliminary documentation and is subject to change.]
Gets medata value with given key
Namespace: Tools.MetadataTAssembly: Tools.Metadata (in Tools.Metadata.dll) Version: 1.5.3.38916 (1.5.3.38916)
Syntax
| C# |
|---|
Object this[ string Key ] { get; } |
| Visual Basic |
|---|
ReadOnly Default Property Value ( _ Key As String _ ) As Object Get |
| Visual C++ |
|---|
property Object^ default[String^ Key] { Object^ get (String^ Key); } |
| F# |
|---|
abstract Value : Object |
| JScript |
|---|
|
Parameters
- Key
- Type: System..::..String
Key (or name) to get vaue for (see GetPredefinedKeys()()()() for possible values)
Return Value
Value of metadata item with given key; or null if given metadata value is not supported
Remarks
The Key peremeter 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 |