Share via


ConcurrentCollectionDictionary<TKey, TElement>.TryGetValue<TCollection> Method (TKey, TCollection%)

Namespace:  Microsoft.TeamFoundation.Framework.Common
Assembly:  Microsoft.TeamFoundation.Common (in Microsoft.TeamFoundation.Common.dll)

Syntax

'Declaration
Public Function TryGetValue(Of TCollection As {Object, ICollection(Of TElement)}) ( _
    key As TKey, _
    <OutAttribute> ByRef collection As TCollection _
) As Boolean
public bool TryGetValue<TCollection>(
    TKey key,
    out TCollection collection
)
where TCollection : Object, ICollection<TElement>
public:
generic<typename TCollection>
where TCollection : Object, ICollection<TElement>
virtual bool TryGetValue(
    TKey key, 
    [OutAttribute] TCollection% collection
) sealed
abstract TryGetValue : 
        key:'TKey * 
        collection:'TCollection byref -> bool   when 'TCollection : Object and ICollection<'TElement>
override TryGetValue : 
        key:'TKey * 
        collection:'TCollection byref -> bool   when 'TCollection : Object and ICollection<'TElement>
JScript does not support generic types or methods.

Type Parameters

  • TCollection

Parameters

  • collection
    Type: TCollection%

Return Value

Type: System.Boolean

Implements

ICollectionDictionary<TKey, TElement>.TryGetValue(TKey, ICollection<TElement>%)

.NET Framework Security

See Also

Reference

ConcurrentCollectionDictionary<TKey, TElement> Class

TryGetValue Overload

Microsoft.TeamFoundation.Framework.Common Namespace