共用方式為


CollectionDictionary<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 安全性

請參閱

參考

CollectionDictionary<TKey, TElement> 類別

TryGetValue 多載

Microsoft.TeamFoundation.Framework.Common 命名空間