Interface IReadOnlyDictionary<K, T>

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

Espace de noms :  Microsoft.SqlServer.Management.Sdk.Sfc
Assembly :  Microsoft.SqlServer.Management.Sdk.Sfc (en Microsoft.SqlServer.Management.Sdk.Sfc.dll)

Syntaxe

'Déclaration
Public Interface IReadOnlyDictionary(Of K, T) _
    Inherits IReadOnlyCollection(Of T), IReadOnlyCollection, IEnumerable(Of T),  _
    IEnumerable
'Utilisation
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 ne prend pas en charge les types et les méthodes génériques.

Paramètres de type

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

Le type IReadOnlyDictionary<K, T> expose les membres suivants.

Propriétés

  Nom Description
Propriété publique Count Gets the number of items that are contained in the collection. (hérité de IReadOnlyCollection.)
Propriété publique Item Gets the value associated with the specified key.
Propriété publique Keys Gets the enumeration object containing the keys of the dictionary.
Propriété publique Values Gets the enumeration object containing the values of the dictionary.

Haut de la page

Méthodes

  Nom Description
Méthode publique Contains Determines whether the specified item is contained in the collection. (hérité de IReadOnlyCollection<T>.)
Méthode publique ContainsKey Determines whether the element with the specified key is contained in the dictionary.
Méthode publique CopyTo Copies the elements of the collection to the specified array, starting at a particular array index. (hérité de IReadOnlyCollection<T>.)
Méthode publique GetEnumerator (hérité de IEnumerable<T>.)
Méthode publique TryGetValue Gets the value associated with the specified key.

Haut de la page

Voir aussi

Référence

Espace de noms Microsoft.SqlServer.Management.Sdk.Sfc