ConcurrentCollectionDictionary<TKey, TElement>.TryGetValue Method (TKey, ICollection<TElement>%)
Namespace: Microsoft.TeamFoundation.Framework.Common
Assembly: Microsoft.TeamFoundation.Common (in Microsoft.TeamFoundation.Common.dll)
Syntax
'Declaration
Public Function TryGetValue ( _
key As TKey, _
<OutAttribute> ByRef collection As ICollection(Of TElement) _
) As Boolean
public bool TryGetValue(
TKey key,
out ICollection<TElement> collection
)
public:
virtual bool TryGetValue(
TKey key,
[OutAttribute] ICollection<TElement>^% collection
) sealed
abstract TryGetValue :
key:'TKey *
collection:ICollection<'TElement> byref -> bool
override TryGetValue :
key:'TKey *
collection:ICollection<'TElement> byref -> bool
public final function TryGetValue(
key : TKey,
collection : ICollection<TElement>
) : boolean
Parameters
- key
Type: TKey
- collection
Type: System.Collections.Generic.ICollection<TElement>%
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.