OrderedDictionaryTKey, TValueViewItem Property |
Gets or sets the value associated with a given key. When getting a value, if this
key is not found in the collection, then an ArgumentException is thrown. When setting
a value, the value replaces any existing value in the dictionary. When setting a value, the
key must be within the range of keys being viewed.
Namespace: X3Platform.CollectionsAssembly: X3Platform.Support (in X3Platform.Support.dll) Version: 1.0.0.0 (2.0.0.0)
Syntaxpublic override sealed TValue this[
TKey key
] { get; set; }
public:
virtual property TValue default[TKey key] {
TValue get (TKey key) override sealed;
void set (TKey key, TValue value) override sealed;
}
Parameters
- key
- Type: TKey
Property Value
Type:
TValueThe value associated with the key.
Implements
IDictionaryTKey, TValueItemTKey
ExceptionsException | Condition |
---|
ArgumentException | A value is being retrieved, and the key is not present in the dictionary,
or a value is being set, and the key is outside the range of keys being viewed by this View. |
See Also