IReadOnlyDictionary<K, T> 接口
Defines properties and methods for the generic type read-only collection of key/value pairs.
命名空间: Microsoft.SqlServer.Management.Sdk.Sfc
程序集: Microsoft.SqlServer.Management.Sdk.Sfc(在 Microsoft.SqlServer.Management.Sdk.Sfc.dll 中)
语法
声明
Public Interface IReadOnlyDictionary(Of K, T) _
Inherits IReadOnlyCollection(Of T), IReadOnlyCollection, IEnumerable(Of T), _
IEnumerable
用法
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 不支持一般类型和方法。
类型参数
- K
The type of keys in the dictionary.
- T
The type of values in the dictionary.
IReadOnlyDictionary<K, T> 类型公开以下成员。
属性
名称 | 说明 | |
---|---|---|
Count | Gets the number of items that are contained in the collection. (从 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. |
页首
方法
名称 | 说明 | |
---|---|---|
Contains | Determines whether the specified item is contained in the collection. (从 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. (从 IReadOnlyCollection<T> 继承。) | |
GetEnumerator | (从 IEnumerable<T> 继承。) | |
TryGetValue | Gets the value associated with the specified key. |
页首