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
- key
Type: TKey
- collection
Type: TCollection%
Return Value
Type: System.Boolean
Implements
ICollectionDictionary<TKey, TElement>.TryGetValue(TKey, ICollection<TElement>%)
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.