FrozenDictionary<TKey,TValue>.AlternateLookup<TAlternateKey>.Item[TAlternateKey] Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets or sets the value associated with the specified alternate key.
public:
property TValue default[TAlternateKey] { TValue get(TAlternateKey key); };
public TValue this[TAlternateKey key] { get; }
member this.Item('AlternateKey) : 'Value
Default Public ReadOnly Property Item(key As TAlternateKey) As TValue
Parameters
- key
- TAlternateKey
The alternate key of the value to get or set.
Property Value
TValue
The value associated with the specified alternate key. If the specified alternate key is not found, a get operation throws
a KeyNotFoundException, and a set operation creates a new element with the specified key.
Exceptions
key
is null
.
The alternate key does not exist in the collection.
Applies to
GitHub पर हमारे साथ सहयोग करें
इस सामग्री का स्रोत GitHub पर पाया जा सकता है, जहाँ आप समस्याएँ बना और समीक्षा भी कर सकते हैं और अनुरोध खींच सकते हैं. अधिक जानकारी के लिए, हमारे योगदानकर्ता गाइड देखें.