PropertyCollection 类
定义
PropertyCollection 类包含 DirectoryEntry 的属性:The PropertyCollection class contains the properties of a 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 |
获取此集合中属性的数目。Gets the number of properties in this collection. |
Item[String] |
获取指定属性。Gets the specified property. |
PropertyNames |
获取此集合中属性的名称。Gets the names of the properties in this collection. |
Values |
获取此集合中属性的值。Gets the values of the properties in this collection. |
方法
Contains(String) |
确定指定属性是否在该集合中。Determines whether the specified property is in this collection. |
CopyTo(PropertyValueCollection[], Int32) |
将此集合中的所有对象复制数组,从目标数组的指定索引中开始。Copies the all objects in this collection to an array, starting at the specified index in the target array. |
Equals(Object) |
确定指定对象是否等于当前对象。Determines whether the specified object is equal to the current object. (继承自 Object) |
GetEnumerator() |
返回可用于循环访问此集合的枚举数。Returns an enumerator that you can use to iterate through this collection. |
GetHashCode() |
作为默认哈希函数。Serves as the default hash function. (继承自 Object) |
GetType() |
获取当前实例的 Type。Gets the Type of the current instance. (继承自 Object) |
MemberwiseClone() |
创建当前 Object 的浅表副本。Creates a shallow copy of the current Object. (继承自 Object) |
ToString() |
返回表示当前对象的字符串。Returns a string that represents the current object. (继承自 Object) |
显式接口实现
ICollection.CopyTo(Array, Int32) |
从特定的 ICollection 索引开始,将 Array 的元素复制到一个 Array 中。Copies the elements of the ICollection to an Array, starting at a particular Array index. |
ICollection.IsSynchronized |
获取一个值,该值指示是否同步对 ICollection 的访问(线程安全)。Gets a value indicating whether access to the ICollection is synchronized (thread safe). |
ICollection.SyncRoot |
获取可用于同步对 ICollection 的访问的对象。Gets an object that can be used to synchronize access to the ICollection. |
IDictionary.Add(Object, Object) |
在 IDictionary 对象中添加一个带有所提供的键和值的元素。Adds an element with the provided key and value to the IDictionary object. |
IDictionary.Clear() |
从 IDictionary 对象中移除所有元素。Removes all elements from the IDictionary object. |
IDictionary.Contains(Object) |
确定 IDictionary 对象是否包含具有指定键的元素。Determines whether the IDictionary object contains an element with the specified key. |
IDictionary.IsFixedSize |
获取一个值,该值指示 IDictionary 对象是否具有固定大小。Gets a value indicating whether the IDictionary object has a fixed size. |
IDictionary.IsReadOnly |
获取一个值,该值指示 IDictionary 对象是否为只读。Gets a value indicating whether the IDictionary object is read-only. |
IDictionary.Item[Object] |
获取或设置具有指定键的元素。Gets or sets the element with the specified key. |
IDictionary.Keys |
获取 ICollection 对象,它包含 IDictionary 对象的键。Gets an ICollection object containing the keys of the IDictionary object. |
IDictionary.Remove(Object) |
从 IDictionary 对象中移除具有指定键的元素。Removes the element with the specified key from the IDictionary object. |
IEnumerable.GetEnumerator() |
返回一个 IEnumerable 对象。Returns an IEnumerable object. |
扩展方法
Cast<TResult>(IEnumerable) |
将 IEnumerable 的元素强制转换为指定的类型。Casts the elements of an IEnumerable to the specified type. |
OfType<TResult>(IEnumerable) |
根据指定类型筛选 IEnumerable 的元素。Filters the elements of an IEnumerable based on a specified type. |
AsParallel(IEnumerable) |
启用查询的并行化。Enables parallelization of a query. |
AsQueryable(IEnumerable) |
将 IEnumerable 转换为 IQueryable。Converts an IEnumerable to an IQueryable. |