ParallelQuery ParallelQuery ParallelQuery ParallelQuery Class

定义

表示并行序列。Represents a parallel sequence.

public ref class ParallelQuery : System::Collections::IEnumerable
public class ParallelQuery : System.Collections.IEnumerable
type ParallelQuery = class
    interface IEnumerable
Public Class ParallelQuery
Implements IEnumerable
继承
ParallelQueryParallelQueryParallelQueryParallelQuery
派生
实现

显式界面实现

IEnumerable.GetEnumerator() IEnumerable.GetEnumerator() IEnumerable.GetEnumerator() IEnumerable.GetEnumerator()

返回循环访问序列的枚举器。Returns an enumerator that iterates through the sequence.

方法

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

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

(Inherited from Object)
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)
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)

扩展方法

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.

AsOrdered(ParallelQuery) AsOrdered(ParallelQuery) AsOrdered(ParallelQuery) AsOrdered(ParallelQuery)

启用将数据源视为“已经排序”的处理方法,重写默认的将数据源视为“未经排序”的处理方法。Enables treatment of a data source as if it were ordered, overriding the default of unordered. 只可以对由 AsParallel、ParallelEnumerable.Range 和 ParallelEnumerable.Repeat 返回的非泛型序列调用 AsOrdered。AsOrdered may only be invoked on non-generic sequences returned by AsParallel, ParallelEnumerable.Range, and ParallelEnumerable.Repeat.

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

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

Cast<TResult>(ParallelQuery) Cast<TResult>(ParallelQuery) Cast<TResult>(ParallelQuery) Cast<TResult>(ParallelQuery)

将 ParallelQuery 的元素转换为指定的类型。Converts the elements of a ParallelQuery to the specified type.

OfType<TResult>(ParallelQuery) OfType<TResult>(ParallelQuery) OfType<TResult>(ParallelQuery) OfType<TResult>(ParallelQuery)

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

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

IEnumerable 转换为 IQueryableConverts an IEnumerable to an IQueryable.

适用于

另请参阅