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

命名空间:  Microsoft.TeamFoundation.Framework.Common
程序集:  Microsoft.TeamFoundation.Common(在 Microsoft.TeamFoundation.Common.dll 中)

语法

声明
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>

类型参数

  • TCollection

参数

  • collection
    类型:TCollection%

返回值

类型:System.Boolean

实现

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

.NET Framework 安全性

请参见

参考

ConcurrentCollectionDictionary<TKey, TElement> 类

TryGetValue 重载

Microsoft.TeamFoundation.Framework.Common 命名空间