MultiValueDictionaryTKey, TValueGetValues Method |
Gets the values for the key specified. This method is useful if you want to avoid an exception for key value retrieval and you can't use TryGetValue
(e.g. in lambdas)
Namespace: SD.LLBLGen.Pro.ORMSupportClassesAssembly: SD.LLBLGen.Pro.ORMSupportClasses (in SD.LLBLGen.Pro.ORMSupportClasses.dll) Version: 5.0.0.0 (5.0.0)
Syntax public HashSet<TValue> GetValues(
TKey key,
bool returnEmptySet
)
Public Function GetValues (
key As TKey,
returnEmptySet As Boolean
) As HashSet(Of TValue)
Parameters
- key
- Type: TKey
The key. - returnEmptySet
- Type: SystemBoolean
if set to true and the key isn't found, an empty hashset is returned, otherwise, if the key isn't found, null is returned
Return Value
Type:
HashSetTValue
This method will return null (or an empty set if returnEmptySet is true) if the key wasn't found, or
the values if key was found.
See Also