语言

PropertyCollection 类

定义

类 PropertyCollection 包含一个 DirectoryEntry. 的属性。

public ref class PropertyCollection : System::Collections::IDictionary
public class PropertyCollection : System.Collections.IDictionary
type PropertyCollection = class
    interface ICollection
    interface IEnumerable
    interface IDictionary
type PropertyCollection = class
    interface IDictionary
    interface ICollection
    interface IEnumerable
Public Class PropertyCollection
Implements IDictionary
继承
PropertyCollection
实现

属性

名称 说明
Count

获取此集合中的属性数。

Item[String]

获取指定的属性。

PropertyNames

获取此集合中属性的名称。

Values

获取此集合中属性的值。

方法

名称 说明
Contains(String)

确定指定的属性是否在此集合中。

CopyTo(PropertyValueCollection[], Int32)

从目标数组中的指定索引处开始,将此集合中的所有对象复制到数组。

Equals(Object)

确定指定的对象是否等于当前对象。

(继承自 Object)
GetEnumerator()

返回可用于循环访问此集合的枚举器。

GetHashCode()

用作默认哈希函数。

(继承自 Object)
GetType()

获取当前实例的 Type。

(继承自 Object)
MemberwiseClone()

创建当前 Object的浅表副本。

(继承自 Object)
ToString()

返回一个表示当前对象的字符串。

(继承自 Object)

显式接口实现

名称 说明
ICollection.CopyTo(Array, Int32)

将元素ICollection复制到从特定Array索引开始的元素Array。

ICollection.IsSynchronized

获取一个值,该值指示对 ICollection 同步的访问是否同步(线程安全)。

ICollection.SyncRoot

获取可用于同步对 . ICollection的访问的对象。

IDictionary.Add(Object, Object)

将具有提供的键和值的元素添加到 IDictionary 对象。

IDictionary.Clear()

从对象中删除所有元素 IDictionary 。

IDictionary.Contains(Object)

确定对象是否 IDictionary 包含具有指定键的元素。

IDictionary.IsFixedSize

获取一个值,该值指示对象是否 IDictionary 具有固定大小。

IDictionary.IsReadOnly

获取一个值,该值指示对象 IDictionary 是否为只读。

IDictionary.Item[Object]

获取或设置具有指定键的元素。

IDictionary.Keys

获取包含 ICollection 对象的键 IDictionary 的对象。

IDictionary.Remove(Object)

从对象中删除具有指定键的 IDictionary 元素。

IEnumerable.GetEnumerator()

返回一个 IEnumerable 对象。

扩展方法

名称 说明
AsParallel(IEnumerable)

启用查询的并行化。

AsQueryable(IEnumerable)

将 IEnumerable 转换为 IQueryable。

Cast<TResult>(IEnumerable)

将 IEnumerable 的元素强制转换为指定类型。

OfType<TResult>(IEnumerable)

根据指定类型筛选 IEnumerable 的元素。

适用于