Freigeben über


IReadOnlyDictionary<K, T>-Schnittstelle

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 (in Microsoft.SqlServer.Management.Sdk.Sfc.dll)

Syntax

'Declaration
Public Interface IReadOnlyDictionary(Of K, T) _
    Inherits IReadOnlyCollection(Of T), IReadOnlyCollection, IEnumerable(Of T),  _
    IEnumerable
'Usage
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 bietet keine Unterstützung für die Verwendung generischer Typen und Methoden.

Typparameter

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

Der IReadOnlyDictionary<K, T>-Typ macht folgende Elemente verfügbar.

Eigenschaften

  Name Beschreibung
Öffentliche Eigenschaft Count Gets the number of items that are contained in the collection. (Geerbt von IReadOnlyCollection.)
Öffentliche Eigenschaft Item Gets the value associated with the specified key.
Öffentliche Eigenschaft Keys Gets the enumeration object containing the keys of the dictionary.
Öffentliche Eigenschaft Values Gets the enumeration object containing the values of the dictionary.

Zum Anfang

Methoden

  Name Beschreibung
Öffentliche Methode Contains Determines whether the specified item is contained in the collection. (Geerbt von IReadOnlyCollection<T>.)
Öffentliche Methode ContainsKey Determines whether the element with the specified key is contained in the dictionary.
Öffentliche Methode CopyTo Copies the elements of the collection to the specified array, starting at a particular array index. (Geerbt von IReadOnlyCollection<T>.)
Öffentliche Methode GetEnumerator (Geerbt von IEnumerable<T>.)
Öffentliche Methode TryGetValue Gets the value associated with the specified key.

Zum Anfang

Siehe auch

Verweis

Microsoft.SqlServer.Management.Sdk.Sfc-Namespace