Share via


IDictionary 成员

表示键/值对的非通用集合。

下表列出了由 IDictionary 类型公开的成员。

公共属性

  名称 说明
Public property Supported by the .NET Compact Framework IsFixedSize 获取一个值,该值指示 IDictionary 对象是否具有固定大小。
Public property Supported by the .NET Compact Framework IsReadOnly 获取一个值,该值指示 IDictionary 对象是否为只读。
Public property Supported by the .NET Compact Framework Item 获取或设置具有指定键的元素。
Public property Supported by the .NET Compact Framework Keys 获取 ICollection 对象,它包含 IDictionary 对象的键。
Public property Supported by the .NET Compact Framework Values 获取 ICollection 对象,它包含 IDictionary 对象中的值。

页首

公共方法

  名称 说明
Public method Supported by the .NET Compact Framework Add IDictionary 对象中添加一个带有所提供的键和值的元素。
Public method Supported by the .NET Compact Framework Clear IDictionary 对象中移除所有元素。
Public method Supported by the .NET Compact Framework Contains 确定 IDictionary 对象是否包含具有指定键的元素。
Public method Supported by the .NET Compact Framework GetEnumerator 返回一个用于 IDictionary 对象的 IDictionaryEnumerator 对象。
Public method Supported by the .NET Compact Framework Remove IDictionary 对象中移除带有指定键的元素。

页首

请参见

参考

IDictionary 接口
System.Collections 命名空间
Hashtable 类
ICollection 接口