Interfaz IReadOnlyDictionary<K, T>
Defines properties and methods for the generic type read-only collection of key/value pairs.
Espacio de nombres: Microsoft.SqlServer.Management.Sdk.Sfc
Ensamblado: Microsoft.SqlServer.Management.Sdk.Sfc (en Microsoft.SqlServer.Management.Sdk.Sfc.dll)
Sintaxis
'Declaración
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 no admite tipos y métodos genéricos.
Parámetros de tipo
- K
The type of keys in the dictionary.
- T
The type of values in the dictionary.
El tipo IReadOnlyDictionary<K, T> expone los siguientes miembros.
Propiedades
Nombre | Descripción | |
---|---|---|
Count | Gets the number of items that are contained in the collection. (Se hereda de 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. |
Arriba
Métodos
Nombre | Descripción | |
---|---|---|
Contains | Determines whether the specified item is contained in the collection. (Se hereda de 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. (Se hereda de IReadOnlyCollection<T>.) | |
GetEnumerator | (Se hereda de IEnumerable<T>.) | |
TryGetValue | Gets the value associated with the specified key. |
Arriba