ResultPropertyValueCollection ResultPropertyValueCollection ResultPropertyValueCollection ResultPropertyValueCollection Class


包含 SearchResult 属性的值。Contains the values of a SearchResult property.

public ref class ResultPropertyValueCollection : System::Collections::ReadOnlyCollectionBase
public class ResultPropertyValueCollection : System.Collections.ReadOnlyCollectionBase
type ResultPropertyValueCollection = class
    inherit ReadOnlyCollectionBase
Public Class ResultPropertyValueCollection
Inherits ReadOnlyCollectionBase


SearchResult实例与DirectoryEntry实例相似。SearchResult instances are similar to DirectoryEntry instances. 显著的区别DirectoryEntry在于, 每次访问新对象时, 都会从 Active Directory 域服务层次结构中检索其信息, 而中的数据SearchResult已在SearchResultCollection DirectorySearcher查询返回。The notable difference is that the DirectoryEntry retrieves its information from the Active Directory Domain Services hierarchy each time a new object is accessed, whereas the data for the SearchResult is already available in the SearchResultCollection that a DirectorySearcher query returns. 如果尝试获取SearchResult查询未指定进行检索的属性, 则该属性将不可用。If you try to get a SearchResult property that your query did not specify for retrieval, the property will not be available.


Count Count Count Count

获取包含在 ReadOnlyCollectionBase 实例中的元素数。Gets the number of elements contained in the ReadOnlyCollectionBase instance.

(Inherited from ReadOnlyCollectionBase)
ICollection.IsSynchronized ICollection.IsSynchronized ICollection.IsSynchronized ICollection.IsSynchronized

获取一个值,该值指示对 ReadOnlyCollectionBase 对象的访问是否同步(线程安全)。Gets a value indicating whether access to a ReadOnlyCollectionBase object is synchronized (thread safe).

(Inherited from ReadOnlyCollectionBase)
ICollection.SyncRoot ICollection.SyncRoot ICollection.SyncRoot ICollection.SyncRoot

获取一个对象,该对象可用于同步对 ReadOnlyCollectionBase 对象的访问。Gets an object that can be used to synchronize access to a ReadOnlyCollectionBase object.

(Inherited from ReadOnlyCollectionBase)
InnerList InnerList InnerList InnerList

获取 ReadOnlyCollectionBase 实例中包含的元素的列表。Gets the list of elements contained in the ReadOnlyCollectionBase instance.

(Inherited from ReadOnlyCollectionBase)
Item[Int32] Item[Int32] Item[Int32] Item[Int32]

Item[Int32] 属性获取位于指定索引处的属性值。The Item[Int32] property gets the property value that is located at a specified index.


Contains(Object) Contains(Object) Contains(Object) Contains(Object)

Contains(Object) 方法确定指定的属性值是否在此集合中。The Contains(Object) method determines whether a specified property value is in this collection.

CopyTo(Object[], Int32) CopyTo(Object[], Int32) CopyTo(Object[], Int32) CopyTo(Object[], Int32)

CopyTo(Object[], Int32) 方法将属性值从此集合复制到一个数组中,并从该数组的某个特定索引处开始复制。The CopyTo(Object[], Int32) method copies the property values from this collection to an array, starting at a particular index of the array.

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

确定指定的对象是否等于当前对象。Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetEnumerator() GetEnumerator() GetEnumerator() GetEnumerator()

返回循环访问 ReadOnlyCollectionBase 实例的枚举器。Returns an enumerator that iterates through the ReadOnlyCollectionBase instance.

(Inherited from ReadOnlyCollectionBase)
GetHashCode() GetHashCode() GetHashCode() GetHashCode()

作为默认哈希函数。Serves as the default hash function.

(Inherited from Object)
GetType() GetType() GetType() GetType()

获取当前实例的 TypeGets the Type of the current instance.

(Inherited from Object)
IndexOf(Object) IndexOf(Object) IndexOf(Object) IndexOf(Object)

IndexOf(Object) 方法在此集合中检索指定属性值的索引。The IndexOf(Object) method retrieves the index of a specified property value in this collection.

MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

创建当前 Object 的浅表副本。Creates a shallow copy of the current Object.

(Inherited from Object)
ToString() ToString() ToString() ToString()

返回表示当前对象的字符串。Returns a string that represents the current object.

(Inherited from Object)


ICollection.CopyTo(Array, Int32) ICollection.CopyTo(Array, Int32) ICollection.CopyTo(Array, Int32) ICollection.CopyTo(Array, Int32)

从目标数组的指定索引处开始将整个 ReadOnlyCollectionBase 复制到兼容的一维 ArrayCopies the entire ReadOnlyCollectionBase to a compatible one-dimensional Array, starting at the specified index of the target array.

(Inherited from ReadOnlyCollectionBase)


Cast<TResult>(IEnumerable) Cast<TResult>(IEnumerable) Cast<TResult>(IEnumerable) Cast<TResult>(IEnumerable)

IEnumerable 的元素强制转换为指定的类型。Casts the elements of an IEnumerable to the specified type.

OfType<TResult>(IEnumerable) OfType<TResult>(IEnumerable) OfType<TResult>(IEnumerable) OfType<TResult>(IEnumerable)

根据指定类型筛选 IEnumerable 的元素。Filters the elements of an IEnumerable based on a specified type.

AsParallel(IEnumerable) AsParallel(IEnumerable) AsParallel(IEnumerable) AsParallel(IEnumerable)

启用查询的并行化。Enables parallelization of a query.

AsQueryable(IEnumerable) AsQueryable(IEnumerable) AsQueryable(IEnumerable) AsQueryable(IEnumerable)

IEnumerable 转换为 IQueryableConverts an IEnumerable to an IQueryable.