ConcurrentCollectionDictionary<TKey, TElement>.TryGetValue 方法 (TKey, ICollection<TElement>%)
命名空間: Microsoft.TeamFoundation.Framework.Common
組件: Microsoft.TeamFoundation.Common (在 Microsoft.TeamFoundation.Common.dll 中)
語法
'宣告
Public Function TryGetValue ( _
key As TKey, _
<OutAttribute> ByRef collection As ICollection(Of TElement) _
) As Boolean
public bool TryGetValue(
TKey key,
out ICollection<TElement> collection
)
參數
- key
型別:TKey
- collection
型別:System.Collections.Generic.ICollection<TElement>%
傳回值
實作
ICollectionDictionary<TKey, TElement>.TryGetValue(TKey, ICollection<TElement>%)
.NET Framework 安全性
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱從部分受信任程式碼使用程式庫。