共用方式為


IReadOnlyDictionary<K, T> 介面

Defines properties and methods for the generic type read-only collection of key/value pairs.

命名空間:  Microsoft.SqlServer.Management.Sdk.Sfc
組件:  Microsoft.SqlServer.Management.Sdk.Sfc (在 Microsoft.SqlServer.Management.Sdk.Sfc.dll 中)

語法

'宣告
Public Interface IReadOnlyDictionary(Of K, T) _
    Inherits IReadOnlyCollection(Of T), IReadOnlyCollection, IEnumerable(Of T),  _
    IEnumerable
'用途
Dim instance As IReadOnlyDictionary(Of K, T)
public interface IReadOnlyDictionary<K, T> : IReadOnlyCollection<T>, 
    IReadOnlyCollection, IEnumerable<T>, IEnumerable
generic<typename K, typename T>
public interface class IReadOnlyDictionary : IReadOnlyCollection<T>, 
    IReadOnlyCollection, IEnumerable<T>, IEnumerable
type IReadOnlyDictionary<'K, 'T> =  
    interface 
        interface IReadOnlyCollection<'T>
        interface IReadOnlyCollection 
        interface IEnumerable<'T>
        interface IEnumerable 
    end
JScript 不支援一般類型和方法。

型別參數

  • K
    The type of keys in the dictionary.
  • T
    The type of values in the dictionary.

IReadOnlyDictionary<K, T> 型別公開下列成員。

屬性

  名稱 說明
公用屬性 Count Gets the number of items that are contained in the collection. (繼承自 IReadOnlyCollection。)
公用屬性 Item Gets the value associated with the specified key.
公用屬性 Keys Gets the enumeration object containing the keys of the dictionary.
公用屬性 Values Gets the enumeration object containing the values of the dictionary.

上層

方法

  名稱 說明
公用方法 Contains Determines whether the specified item is contained in the collection. (繼承自 IReadOnlyCollection<T>。)
公用方法 ContainsKey Determines whether the element with the specified key is contained in the dictionary.
公用方法 CopyTo Copies the elements of the collection to the specified array, starting at a particular array index. (繼承自 IReadOnlyCollection<T>。)
公用方法 GetEnumerator (繼承自 IEnumerable<T>。)
公用方法 TryGetValue Gets the value associated with the specified key.

上層

請參閱

參考

Microsoft.SqlServer.Management.Sdk.Sfc 命名空間