Partilhar via


Interface IReadOnlyDictionary<K, T>

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

Namespace:  Microsoft.SqlServer.Management.Sdk.Sfc
Assembly:  Microsoft.SqlServer.Management.Sdk.Sfc (em Microsoft.SqlServer.Management.Sdk.Sfc.dll)

Sintaxe

'Declaração
Public Interface IReadOnlyDictionary(Of K, T) _
    Inherits IReadOnlyCollection(Of T), IReadOnlyCollection, IEnumerable(Of T),  _
    IEnumerable
'Uso
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 não dá suporte a tipos e métodos genéricos.

Parâmetros de tipo

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

O tipo IReadOnlyDictionary<K, T> expõe os membros a seguir.

Propriedades

  Nome Descrição
Propriedade pública Count Gets the number of items that are contained in the collection. (Herdado de IReadOnlyCollection.)
Propriedade pública Item Gets the value associated with the specified key.
Propriedade pública Keys Gets the enumeration object containing the keys of the dictionary.
Propriedade pública Values Gets the enumeration object containing the values of the dictionary.

Início

Métodos

  Nome Descrição
Método público Contains Determines whether the specified item is contained in the collection. (Herdado de IReadOnlyCollection<T>.)
Método público ContainsKey Determines whether the element with the specified key is contained in the dictionary.
Método público CopyTo Copies the elements of the collection to the specified array, starting at a particular array index. (Herdado de IReadOnlyCollection<T>.)
Método público GetEnumerator (Herdado de IEnumerable<T>.)
Método público TryGetValue Gets the value associated with the specified key.

Início

Consulte também

Referência

Namespace Microsoft.SqlServer.Management.Sdk.Sfc