Interfaccia IReadOnlyDictionary<K, T>

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

Spazio dei nomi  Microsoft.SqlServer.Management.Sdk.Sfc
Assembly:  Microsoft.SqlServer.Management.Sdk.Sfc (in Microsoft.SqlServer.Management.Sdk.Sfc.dll)

Sintassi

'Dichiarazione
Public Interface IReadOnlyDictionary(Of K, T) _
    Inherits IReadOnlyCollection(Of T), IReadOnlyCollection, IEnumerable(Of T),  _
    IEnumerable
'Utilizzo
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 non supporta i metodi e i tipi generici.

Parametri di tipo

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

Nel tipo IReadOnlyDictionary<K, T> sono esposti i membri seguenti.

Proprietà

  Nome Descrizione
Proprietà pubblica Count Gets the number of items that are contained in the collection. Ereditato da IReadOnlyCollection.
Proprietà pubblica Item Gets the value associated with the specified key.
Proprietà pubblica Keys Gets the enumeration object containing the keys of the dictionary.
Proprietà pubblica Values Gets the enumeration object containing the values of the dictionary.

In alto

Metodi

  Nome Descrizione
Metodo pubblico Contains Determines whether the specified item is contained in the collection. Ereditato da IReadOnlyCollection<T>.
Metodo pubblico ContainsKey Determines whether the element with the specified key is contained in the dictionary.
Metodo pubblico CopyTo Copies the elements of the collection to the specified array, starting at a particular array index. Ereditato da IReadOnlyCollection<T>.
Metodo pubblico GetEnumerator Ereditato da IEnumerable<T>.
Metodo pubblico TryGetValue Gets the value associated with the specified key.

In alto

Vedere anche

Riferimento

Spazio dei nomi Microsoft.SqlServer.Management.Sdk.Sfc