ParallelQuery<TSource> ParallelQuery<TSource> ParallelQuery<TSource> ParallelQuery<TSource> Class

定义

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

generic <typename TSource>
public ref class ParallelQuery : System::Linq::ParallelQuery, System::Collections::Generic::IEnumerable<TSource>
public class ParallelQuery<TSource> : System.Linq.ParallelQuery, System.Collections.Generic.IEnumerable<TSource>
type ParallelQuery<'Source> = class
    inherit ParallelQuery
    interface seq<'Source>
    interface IEnumerable
Public Class ParallelQuery(Of TSource)
Inherits ParallelQuery
Implements IEnumerable(Of TSource)

类型参数

TSource

源序列中的元素的类型。The type of element in the source sequence.

继承
ParallelQuery<TSource>ParallelQuery<TSource>ParallelQuery<TSource>ParallelQuery<TSource>
派生
实现

方法

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()

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

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)

显式界面实现

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

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

(Inherited from ParallelQuery)

扩展方法

CopyToDataTable<T>(IEnumerable<T>) CopyToDataTable<T>(IEnumerable<T>) CopyToDataTable<T>(IEnumerable<T>) CopyToDataTable<T>(IEnumerable<T>)

在给定其泛型参数 TDataTable 的输入 DataRow 对象的情况下,返回包含 IEnumerable<T> 对象副本的 DataRowReturns a DataTable that contains copies of the DataRow objects, given an input IEnumerable<T> object where the generic parameter T is DataRow.

CopyToDataTable<T>(IEnumerable<T>, DataTable, LoadOption) CopyToDataTable<T>(IEnumerable<T>, DataTable, LoadOption) CopyToDataTable<T>(IEnumerable<T>, DataTable, LoadOption) CopyToDataTable<T>(IEnumerable<T>, DataTable, LoadOption)

在给定其泛型参数 TDataRow 的输入 DataTable 对象的情况下,将 IEnumerable<T> 对象复制到指定的 DataRowCopies DataRow objects to the specified DataTable, given an input IEnumerable<T> object where the generic parameter T is DataRow.

CopyToDataTable<T>(IEnumerable<T>, DataTable, LoadOption, FillErrorEventHandler) CopyToDataTable<T>(IEnumerable<T>, DataTable, LoadOption, FillErrorEventHandler) CopyToDataTable<T>(IEnumerable<T>, DataTable, LoadOption, FillErrorEventHandler) CopyToDataTable<T>(IEnumerable<T>, DataTable, LoadOption, FillErrorEventHandler)

在给定其泛型参数 TDataRow 的输入 DataTable 对象的情况下,将 IEnumerable<T> 对象复制到指定的 DataRowCopies DataRow objects to the specified DataTable, given an input IEnumerable<T> object where the generic parameter T is DataRow.

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.

Aggregate<TSource>(ParallelQuery<TSource>, Func<TSource,TSource,TSource>) Aggregate<TSource>(ParallelQuery<TSource>, Func<TSource,TSource,TSource>) Aggregate<TSource>(ParallelQuery<TSource>, Func<TSource,TSource,TSource>) Aggregate<TSource>(ParallelQuery<TSource>, Func<TSource,TSource,TSource>)

对一个序列并行应用累加器函数。Applies in parallel an accumulator function over a sequence.

Aggregate<TSource,TAccumulate>(ParallelQuery<TSource>, TAccumulate, Func<TAccumulate,TSource,TAccumulate>) Aggregate<TSource,TAccumulate>(ParallelQuery<TSource>, TAccumulate, Func<TAccumulate,TSource,TAccumulate>) Aggregate<TSource,TAccumulate>(ParallelQuery<TSource>, TAccumulate, Func<TAccumulate,TSource,TAccumulate>) Aggregate<TSource,TAccumulate>(ParallelQuery<TSource>, TAccumulate, Func<TAccumulate,TSource,TAccumulate>)

对一个序列并行应用累加器函数。Applies in parallel an accumulator function over a sequence. 将指定的种子值用作累加器初始值。The specified seed value is used as the initial accumulator value.

Aggregate<TSource,TAccumulate,TResult>(ParallelQuery<TSource>, TAccumulate, Func<TAccumulate,TSource,TAccumulate>, Func<TAccumulate,TAccumulate,TAccumulate>, Func<TAccumulate,TResult>) Aggregate<TSource,TAccumulate,TResult>(ParallelQuery<TSource>, TAccumulate, Func<TAccumulate,TSource,TAccumulate>, Func<TAccumulate,TAccumulate,TAccumulate>, Func<TAccumulate,TResult>) Aggregate<TSource,TAccumulate,TResult>(ParallelQuery<TSource>, TAccumulate, Func<TAccumulate,TSource,TAccumulate>, Func<TAccumulate,TAccumulate,TAccumulate>, Func<TAccumulate,TResult>) Aggregate<TSource,TAccumulate,TResult>(ParallelQuery<TSource>, TAccumulate, Func<TAccumulate,TSource,TAccumulate>, Func<TAccumulate,TAccumulate,TAccumulate>, Func<TAccumulate,TResult>)

对一个序列并行应用累加器函数。Applies in parallel an accumulator function over a sequence. 此重载在顺序实现中不可用。This overload is not available in the sequential implementation.

Aggregate<TSource,TAccumulate,TResult>(ParallelQuery<TSource>, TAccumulate, Func<TAccumulate,TSource,TAccumulate>, Func<TAccumulate,TResult>) Aggregate<TSource,TAccumulate,TResult>(ParallelQuery<TSource>, TAccumulate, Func<TAccumulate,TSource,TAccumulate>, Func<TAccumulate,TResult>) Aggregate<TSource,TAccumulate,TResult>(ParallelQuery<TSource>, TAccumulate, Func<TAccumulate,TSource,TAccumulate>, Func<TAccumulate,TResult>) Aggregate<TSource,TAccumulate,TResult>(ParallelQuery<TSource>, TAccumulate, Func<TAccumulate,TSource,TAccumulate>, Func<TAccumulate,TResult>)

对一个序列并行应用累加器函数。Applies in parallel an accumulator function over a sequence. 将指定的种子值用作累加器的初始值,并使用指定的函数选择结果值。The specified seed value is used as the initial accumulator value, and the specified function is used to select the result value.

Aggregate<TSource,TAccumulate,TResult>(ParallelQuery<TSource>, Func<TAccumulate>, Func<TAccumulate,TSource,TAccumulate>, Func<TAccumulate,TAccumulate,TAccumulate>, Func<TAccumulate,TResult>) Aggregate<TSource,TAccumulate,TResult>(ParallelQuery<TSource>, Func<TAccumulate>, Func<TAccumulate,TSource,TAccumulate>, Func<TAccumulate,TAccumulate,TAccumulate>, Func<TAccumulate,TResult>) Aggregate<TSource,TAccumulate,TResult>(ParallelQuery<TSource>, Func<TAccumulate>, Func<TAccumulate,TSource,TAccumulate>, Func<TAccumulate,TAccumulate,TAccumulate>, Func<TAccumulate,TResult>) Aggregate<TSource,TAccumulate,TResult>(ParallelQuery<TSource>, Func<TAccumulate>, Func<TAccumulate,TSource,TAccumulate>, Func<TAccumulate,TAccumulate,TAccumulate>, Func<TAccumulate,TResult>)

对一个序列并行应用累加器函数。Applies in parallel an accumulator function over a sequence. 此重载在顺序实现中不可用。This overload is not available in the sequential implementation.

All<TSource>(ParallelQuery<TSource>, Func<TSource,Boolean>) All<TSource>(ParallelQuery<TSource>, Func<TSource,Boolean>) All<TSource>(ParallelQuery<TSource>, Func<TSource,Boolean>) All<TSource>(ParallelQuery<TSource>, Func<TSource,Boolean>)

并行确定序列中的所有元素是否都满足条件。Determines in parallel whether all elements of a sequence satisfy a condition.

Any<TSource>(ParallelQuery<TSource>) Any<TSource>(ParallelQuery<TSource>) Any<TSource>(ParallelQuery<TSource>) Any<TSource>(ParallelQuery<TSource>)

确定并行序列是否包含任何元素。Determines whether a parallel sequence contains any elements.

Any<TSource>(ParallelQuery<TSource>, Func<TSource,Boolean>) Any<TSource>(ParallelQuery<TSource>, Func<TSource,Boolean>) Any<TSource>(ParallelQuery<TSource>, Func<TSource,Boolean>) Any<TSource>(ParallelQuery<TSource>, Func<TSource,Boolean>)

并行确定序列中的任何元素是否都满足条件。Determines in parallel whether any element of a sequence satisfies a condition.

AsEnumerable<TSource>(ParallelQuery<TSource>) AsEnumerable<TSource>(ParallelQuery<TSource>) AsEnumerable<TSource>(ParallelQuery<TSource>) AsEnumerable<TSource>(ParallelQuery<TSource>)

ParallelQuery<TSource> 转换为 IEnumerable<T> 以强制对查询进行顺序计算。Converts a ParallelQuery<TSource> into an IEnumerable<T> to force sequential evaluation of the query.

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.

AsOrdered<TSource>(ParallelQuery<TSource>) AsOrdered<TSource>(ParallelQuery<TSource>) AsOrdered<TSource>(ParallelQuery<TSource>) AsOrdered<TSource>(ParallelQuery<TSource>)

启用将数据源视为“已经排序”的处理方法,重写默认的将数据源视为“未经排序”的处理方法。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 generic sequences returned by AsParallel, ParallelEnumerable.Range, and ParallelEnumerable.Repeat.

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

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

AsSequential<TSource>(ParallelQuery<TSource>) AsSequential<TSource>(ParallelQuery<TSource>) AsSequential<TSource>(ParallelQuery<TSource>) AsSequential<TSource>(ParallelQuery<TSource>)

ParallelQuery<TSource> 转换为 IEnumerable<T> 以强制对查询进行顺序计算。Converts a ParallelQuery<TSource> into an IEnumerable<T> to force sequential evaluation of the query.

AsUnordered<TSource>(ParallelQuery<TSource>) AsUnordered<TSource>(ParallelQuery<TSource>) AsUnordered<TSource>(ParallelQuery<TSource>) AsUnordered<TSource>(ParallelQuery<TSource>)

允许将中间查询视为元素之间未应用任何排序。Allows an intermediate query to be treated as if no ordering is implied among the elements.

Average<TSource>(ParallelQuery<TSource>, Func<TSource,Decimal>) Average<TSource>(ParallelQuery<TSource>, Func<TSource,Decimal>) Average<TSource>(ParallelQuery<TSource>, Func<TSource,Decimal>) Average<TSource>(ParallelQuery<TSource>, Func<TSource,Decimal>)

并行计算一个值序列的平均值,这些值可通过对输入序列的每个元素调用转换函数获得。Computes in parallel the average of a sequence of values that are obtained by invoking a transform function on each element of the input sequence.

Average<TSource>(ParallelQuery<TSource>, Func<TSource,Double>) Average<TSource>(ParallelQuery<TSource>, Func<TSource,Double>) Average<TSource>(ParallelQuery<TSource>, Func<TSource,Double>) Average<TSource>(ParallelQuery<TSource>, Func<TSource,Double>)

并行计算一个值序列的平均值,这些值可通过对输入序列的每个元素调用转换函数获得。Computes in parallel the average of a sequence of values that are obtained by invoking a transform function on each element of the input sequence.

Average<TSource>(ParallelQuery<TSource>, Func<TSource,Int32>) Average<TSource>(ParallelQuery<TSource>, Func<TSource,Int32>) Average<TSource>(ParallelQuery<TSource>, Func<TSource,Int32>) Average<TSource>(ParallelQuery<TSource>, Func<TSource,Int32>)

并行计算一个值序列的平均值,这些值可通过对输入序列的每个元素调用转换函数获得。Computes in parallel the average of a sequence of values that are obtained by invoking a transform function on each element of the input sequence.

Average<TSource>(ParallelQuery<TSource>, Func<TSource,Int64>) Average<TSource>(ParallelQuery<TSource>, Func<TSource,Int64>) Average<TSource>(ParallelQuery<TSource>, Func<TSource,Int64>) Average<TSource>(ParallelQuery<TSource>, Func<TSource,Int64>)

并行计算一个值序列的平均值,这些值可通过对输入序列的每个元素调用转换函数获得。Computes in parallel the average of a sequence of values that are obtained by invoking a transform function on each element of the input sequence.

Average<TSource>(ParallelQuery<TSource>, Func<TSource,Nullable<Decimal>>) Average<TSource>(ParallelQuery<TSource>, Func<TSource,Nullable<Decimal>>) Average<TSource>(ParallelQuery<TSource>, Func<TSource,Nullable<Decimal>>) Average<TSource>(ParallelQuery<TSource>, Func<TSource,Nullable<Decimal>>)

并行计算一个值序列的平均值,这些值可通过对输入序列的每个元素调用转换函数获得。Computes in parallel the average of a sequence of values that are obtained by invoking a transform function on each element of the input sequence.

Average<TSource>(ParallelQuery<TSource>, Func<TSource,Nullable<Double>>) Average<TSource>(ParallelQuery<TSource>, Func<TSource,Nullable<Double>>) Average<TSource>(ParallelQuery<TSource>, Func<TSource,Nullable<Double>>) Average<TSource>(ParallelQuery<TSource>, Func<TSource,Nullable<Double>>)

并行计算一个值序列的平均值,这些值可通过对输入序列的每个元素调用转换函数获得。Computes in parallel the average of a sequence of values that are obtained by invoking a transform function on each element of the input sequence.

Average<TSource>(ParallelQuery<TSource>, Func<TSource,Nullable<Int32>>) Average<TSource>(ParallelQuery<TSource>, Func<TSource,Nullable<Int32>>) Average<TSource>(ParallelQuery<TSource>, Func<TSource,Nullable<Int32>>) Average<TSource>(ParallelQuery<TSource>, Func<TSource,Nullable<Int32>>)

并行计算一个值序列的平均值,这些值可通过对输入序列的每个元素调用转换函数获得。Computes in parallel the average of a sequence of values that are obtained by invoking a transform function on each element of the input sequence.

Average<TSource>(ParallelQuery<TSource>, Func<TSource,Nullable<Int64>>) Average<TSource>(ParallelQuery<TSource>, Func<TSource,Nullable<Int64>>) Average<TSource>(ParallelQuery<TSource>, Func<TSource,Nullable<Int64>>) Average<TSource>(ParallelQuery<TSource>, Func<TSource,Nullable<Int64>>)

并行计算一个值序列的平均值,这些值可通过对输入序列的每个元素调用转换函数获得。Computes in parallel the average of a sequence of values that are obtained by invoking a transform function on each element of the input sequence.

Average<TSource>(ParallelQuery<TSource>, Func<TSource,Nullable<Single>>) Average<TSource>(ParallelQuery<TSource>, Func<TSource,Nullable<Single>>) Average<TSource>(ParallelQuery<TSource>, Func<TSource,Nullable<Single>>) Average<TSource>(ParallelQuery<TSource>, Func<TSource,Nullable<Single>>)

并行计算一个值序列的平均值,这些值可通过对输入序列的每个元素调用转换函数获得。Computes in parallel the average of a sequence of values that are obtained by invoking a transform function on each element of the input sequence.

Average<TSource>(ParallelQuery<TSource>, Func<TSource,Single>) Average<TSource>(ParallelQuery<TSource>, Func<TSource,Single>) Average<TSource>(ParallelQuery<TSource>, Func<TSource,Single>) Average<TSource>(ParallelQuery<TSource>, Func<TSource,Single>)

并行计算一个值序列的平均值,这些值可通过对输入序列的每个元素调用转换函数获得。Computes in parallel the average of a sequence of values that are obtained by invoking a transform function on each element of the input sequence.

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

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

Concat<TSource>(ParallelQuery<TSource>, IEnumerable<TSource>) Concat<TSource>(ParallelQuery<TSource>, IEnumerable<TSource>) Concat<TSource>(ParallelQuery<TSource>, IEnumerable<TSource>) Concat<TSource>(ParallelQuery<TSource>, IEnumerable<TSource>)

切勿调用此 Concat 重载。This Concat overload should never be called. 此方法已标记为过时,调用此方法时总是会引发 NotSupportedExceptionThis method is marked as obsolete and always throws NotSupportedException when called.

Concat<TSource>(ParallelQuery<TSource>, ParallelQuery<TSource>) Concat<TSource>(ParallelQuery<TSource>, ParallelQuery<TSource>) Concat<TSource>(ParallelQuery<TSource>, ParallelQuery<TSource>) Concat<TSource>(ParallelQuery<TSource>, ParallelQuery<TSource>)

连接两个并行序列。Concatenates two parallel sequences.

Contains<TSource>(ParallelQuery<TSource>, TSource) Contains<TSource>(ParallelQuery<TSource>, TSource) Contains<TSource>(ParallelQuery<TSource>, TSource) Contains<TSource>(ParallelQuery<TSource>, TSource)

通过使用默认的相等比较器,并行确定某个序列是否包含指定的元素。Determines in parallel whether a sequence contains a specified element by using the default equality comparer.

Contains<TSource>(ParallelQuery<TSource>, TSource, IEqualityComparer<TSource>) Contains<TSource>(ParallelQuery<TSource>, TSource, IEqualityComparer<TSource>) Contains<TSource>(ParallelQuery<TSource>, TSource, IEqualityComparer<TSource>) Contains<TSource>(ParallelQuery<TSource>, TSource, IEqualityComparer<TSource>)

通过使用指定的 IEqualityComparer<T> 来并行确定序列是否包含指定的元素。Determines in parallel whether a sequence contains a specified element by using a specified IEqualityComparer<T>.

Count<TSource>(ParallelQuery<TSource>) Count<TSource>(ParallelQuery<TSource>) Count<TSource>(ParallelQuery<TSource>) Count<TSource>(ParallelQuery<TSource>)

返回并行序列中的元素数量。Returns the number of elements in a parallel sequence.

Count<TSource>(ParallelQuery<TSource>, Func<TSource,Boolean>) Count<TSource>(ParallelQuery<TSource>, Func<TSource,Boolean>) Count<TSource>(ParallelQuery<TSource>, Func<TSource,Boolean>) Count<TSource>(ParallelQuery<TSource>, Func<TSource,Boolean>)

返回一个数字,表示在指定的并行序列中满足条件的元素数量。Returns a number that represents how many elements in the specified parallel sequence satisfy a condition.

DefaultIfEmpty<TSource>(ParallelQuery<TSource>) DefaultIfEmpty<TSource>(ParallelQuery<TSource>) DefaultIfEmpty<TSource>(ParallelQuery<TSource>) DefaultIfEmpty<TSource>(ParallelQuery<TSource>)

返回指定的并行序列的元素;如果序列为空,则返回单一实例集合中的类型参数的默认值。Returns the elements of the specified parallel sequence or the type parameter's default value in a singleton collection if the sequence is empty.

DefaultIfEmpty<TSource>(ParallelQuery<TSource>, TSource) DefaultIfEmpty<TSource>(ParallelQuery<TSource>, TSource) DefaultIfEmpty<TSource>(ParallelQuery<TSource>, TSource) DefaultIfEmpty<TSource>(ParallelQuery<TSource>, TSource)

返回指定的并行序列中的元素;如果序列为空,则返回单一实例集合中的指定值。Returns the elements of the specified parallel sequence or the specified value in a singleton collection if the sequence is empty.

Distinct<TSource>(ParallelQuery<TSource>) Distinct<TSource>(ParallelQuery<TSource>) Distinct<TSource>(ParallelQuery<TSource>) Distinct<TSource>(ParallelQuery<TSource>)

通过使用默认的相等比较器对值进行比较,返回并行序列中的非重复元素。Returns distinct elements from a parallel sequence by using the default equality comparer to compare values.

Distinct<TSource>(ParallelQuery<TSource>, IEqualityComparer<TSource>) Distinct<TSource>(ParallelQuery<TSource>, IEqualityComparer<TSource>) Distinct<TSource>(ParallelQuery<TSource>, IEqualityComparer<TSource>) Distinct<TSource>(ParallelQuery<TSource>, IEqualityComparer<TSource>)

通过使用指定的 IEqualityComparer<T> 对值进行比较,返回并行序列中的非重复元素。Returns distinct elements from a parallel sequence by using a specified IEqualityComparer<T> to compare values.

ElementAt<TSource>(ParallelQuery<TSource>, Int32) ElementAt<TSource>(ParallelQuery<TSource>, Int32) ElementAt<TSource>(ParallelQuery<TSource>, Int32) ElementAt<TSource>(ParallelQuery<TSource>, Int32)

返回并行序列中指定索引处的元素。Returns the element at a specified index in a parallel sequence.

ElementAtOrDefault<TSource>(ParallelQuery<TSource>, Int32) ElementAtOrDefault<TSource>(ParallelQuery<TSource>, Int32) ElementAtOrDefault<TSource>(ParallelQuery<TSource>, Int32) ElementAtOrDefault<TSource>(ParallelQuery<TSource>, Int32)

返回并行序列中指定索引处的元素;如果索引超出范围,则返回默认值。Returns the element at a specified index in a parallel sequence or a default value if the index is out of range.

Except<TSource>(ParallelQuery<TSource>, IEnumerable<TSource>) Except<TSource>(ParallelQuery<TSource>, IEnumerable<TSource>) Except<TSource>(ParallelQuery<TSource>, IEnumerable<TSource>) Except<TSource>(ParallelQuery<TSource>, IEnumerable<TSource>)

切勿调用此 Except 重载。This Except overload should never be called. 此方法已标记为过时,调用此方法时总是会引发 NotSupportedExceptionThis method is marked as obsolete and always throws NotSupportedException when called.

Except<TSource>(ParallelQuery<TSource>, IEnumerable<TSource>, IEqualityComparer<TSource>) Except<TSource>(ParallelQuery<TSource>, IEnumerable<TSource>, IEqualityComparer<TSource>) Except<TSource>(ParallelQuery<TSource>, IEnumerable<TSource>, IEqualityComparer<TSource>) Except<TSource>(ParallelQuery<TSource>, IEnumerable<TSource>, IEqualityComparer<TSource>)

切勿调用此 Except 重载。This Except overload should never be called. 此方法已标记为过时,调用此方法时总是会引发 NotSupportedExceptionThis method is marked as obsolete and always throws NotSupportedException when called.

Except<TSource>(ParallelQuery<TSource>, ParallelQuery<TSource>) Except<TSource>(ParallelQuery<TSource>, ParallelQuery<TSource>) Except<TSource>(ParallelQuery<TSource>, ParallelQuery<TSource>) Except<TSource>(ParallelQuery<TSource>, ParallelQuery<TSource>)

通过使用默认的相等比较器对值进行比较,生成两个并行序列的差集。Produces the set difference of two parallel sequences by using the default equality comparer to compare values.

Except<TSource>(ParallelQuery<TSource>, ParallelQuery<TSource>, IEqualityComparer<TSource>) Except<TSource>(ParallelQuery<TSource>, ParallelQuery<TSource>, IEqualityComparer<TSource>) Except<TSource>(ParallelQuery<TSource>, ParallelQuery<TSource>, IEqualityComparer<TSource>) Except<TSource>(ParallelQuery<TSource>, ParallelQuery<TSource>, IEqualityComparer<TSource>)

通过使用指定的 IEqualityComparer<T> 对值进行比较产生两个并行序列的差集。Produces the set difference of two parallel sequences by using the specified IEqualityComparer<T> to compare values.

First<TSource>(ParallelQuery<TSource>) First<TSource>(ParallelQuery<TSource>) First<TSource>(ParallelQuery<TSource>) First<TSource>(ParallelQuery<TSource>)

返回并行序列中的第一个元素。Returns the first element of a parallel sequence.

First<TSource>(ParallelQuery<TSource>, Func<TSource,Boolean>) First<TSource>(ParallelQuery<TSource>, Func<TSource,Boolean>) First<TSource>(ParallelQuery<TSource>, Func<TSource,Boolean>) First<TSource>(ParallelQuery<TSource>, Func<TSource,Boolean>)

返回并行序列中满足指定条件的第一个元素。Returns the first element in a parallel sequence that satisfies a specified condition.

FirstOrDefault<TSource>(ParallelQuery<TSource>) FirstOrDefault<TSource>(ParallelQuery<TSource>) FirstOrDefault<TSource>(ParallelQuery<TSource>) FirstOrDefault<TSource>(ParallelQuery<TSource>)

返回并行序列中的第一个元素;如果该序列中不包含任何元素,则返回默认值。Returns the first element of a parallel sequence, or a default value if the sequence contains no elements.

FirstOrDefault<TSource>(ParallelQuery<TSource>, Func<TSource,Boolean>) FirstOrDefault<TSource>(ParallelQuery<TSource>, Func<TSource,Boolean>) FirstOrDefault<TSource>(ParallelQuery<TSource>, Func<TSource,Boolean>) FirstOrDefault<TSource>(ParallelQuery<TSource>, Func<TSource,Boolean>)

返回并行序列中满足条件的第一个元素;如果未找到这样的元素,则返回默认值。Returns the first element of the parallel sequence that satisfies a condition or a default value if no such element is found.

ForAll<TSource>(ParallelQuery<TSource>, Action<TSource>) ForAll<TSource>(ParallelQuery<TSource>, Action<TSource>) ForAll<TSource>(ParallelQuery<TSource>, Action<TSource>) ForAll<TSource>(ParallelQuery<TSource>, Action<TSource>)

source 中的每个元素并行调用指定的操作。Invokes in parallel the specified action for each element in the source.

GroupBy<TSource,TKey>(ParallelQuery<TSource>, Func<TSource,TKey>) GroupBy<TSource,TKey>(ParallelQuery<TSource>, Func<TSource,TKey>) GroupBy<TSource,TKey>(ParallelQuery<TSource>, Func<TSource,TKey>) GroupBy<TSource,TKey>(ParallelQuery<TSource>, Func<TSource,TKey>)

根据指定的键选择器函数对序列中的元素进行并行分组。Groups in parallel the elements of a sequence according to a specified key selector function.

GroupBy<TSource,TKey>(ParallelQuery<TSource>, Func<TSource,TKey>, IEqualityComparer<TKey>) GroupBy<TSource,TKey>(ParallelQuery<TSource>, Func<TSource,TKey>, IEqualityComparer<TKey>) GroupBy<TSource,TKey>(ParallelQuery<TSource>, Func<TSource,TKey>, IEqualityComparer<TKey>) GroupBy<TSource,TKey>(ParallelQuery<TSource>, Func<TSource,TKey>, IEqualityComparer<TKey>)

根据指定的键选择器函数对序列中的元素进行并行分组,并使用指定的 IComparer<T> 对键进行比较。Groups in parallel the elements of a sequence according to a specified key selector function and compares the keys by using a specified IComparer<T>.

GroupBy<TSource,TKey,TElement>(ParallelQuery<TSource>, Func<TSource,TKey>, Func<TSource,TElement>) GroupBy<TSource,TKey,TElement>(ParallelQuery<TSource>, Func<TSource,TKey>, Func<TSource,TElement>) GroupBy<TSource,TKey,TElement>(ParallelQuery<TSource>, Func<TSource,TKey>, Func<TSource,TElement>) GroupBy<TSource,TKey,TElement>(ParallelQuery<TSource>, Func<TSource,TKey>, Func<TSource,TElement>)

根据指定的键选择器函数对序列中的元素进行并行分组,并且通过使用指定的函数对每个组中的元素进行投影。Groups in parallel the elements of a sequence according to a specified key selector function and projects the elements for each group by using a specified function.

GroupBy<TSource,TKey,TElement>(ParallelQuery<TSource>, Func<TSource,TKey>, Func<TSource,TElement>, IEqualityComparer<TKey>) GroupBy<TSource,TKey,TElement>(ParallelQuery<TSource>, Func<TSource,TKey>, Func<TSource,TElement>, IEqualityComparer<TKey>) GroupBy<TSource,TKey,TElement>(ParallelQuery<TSource>, Func<TSource,TKey>, Func<TSource,TElement>, IEqualityComparer<TKey>) GroupBy<TSource,TKey,TElement>(ParallelQuery<TSource>, Func<TSource,TKey>, Func<TSource,TElement>, IEqualityComparer<TKey>)

根据键选择器函数对序列中的元素进行并行分组。Groups in parallel the elements of a sequence according to a key selector function. 通过使用比较器对键进行比较,并且通过使用指定的函数对每个组的元素进行投影。The keys are compared by using a comparer and each group's elements are projected by using a specified function.

GroupBy<TSource,TKey,TResult>(ParallelQuery<TSource>, Func<TSource,TKey>, Func<TKey,IEnumerable<TSource>,TResult>) GroupBy<TSource,TKey,TResult>(ParallelQuery<TSource>, Func<TSource,TKey>, Func<TKey,IEnumerable<TSource>,TResult>) GroupBy<TSource,TKey,TResult>(ParallelQuery<TSource>, Func<TSource,TKey>, Func<TKey,IEnumerable<TSource>,TResult>) GroupBy<TSource,TKey,TResult>(ParallelQuery<TSource>, Func<TSource,TKey>, Func<TKey,IEnumerable<TSource>,TResult>)

根据指定的键选择器函数对序列中的元素进行并行分组,并且从每个组及其键中创建结果值。Groups in parallel the elements of a sequence according to a specified key selector function and creates a result value from each group and its key.

GroupBy<TSource,TKey,TResult>(ParallelQuery<TSource>, Func<TSource,TKey>, Func<TKey,IEnumerable<TSource>,TResult>, IEqualityComparer<TKey>) GroupBy<TSource,TKey,TResult>(ParallelQuery<TSource>, Func<TSource,TKey>, Func<TKey,IEnumerable<TSource>,TResult>, IEqualityComparer<TKey>) GroupBy<TSource,TKey,TResult>(ParallelQuery<TSource>, Func<TSource,TKey>, Func<TKey,IEnumerable<TSource>,TResult>, IEqualityComparer<TKey>) GroupBy<TSource,TKey,TResult>(ParallelQuery<TSource>, Func<TSource,TKey>, Func<TKey,IEnumerable<TSource>,TResult>, IEqualityComparer<TKey>)

根据指定的键选择器函数对序列中的元素进行并行分组,并且从每个组及其键中创建结果值。Groups in parallel the elements of a sequence according to a specified key selector function and creates a result value from each group and its key. 通过使用指定的比较器对键进行比较。The keys are compared by using a specified comparer.

GroupBy<TSource,TKey,TElement,TResult>(ParallelQuery<TSource>, Func<TSource,TKey>, Func<TSource,TElement>, Func<TKey,IEnumerable<TElement>,TResult>) GroupBy<TSource,TKey,TElement,TResult>(ParallelQuery<TSource>, Func<TSource,TKey>, Func<TSource,TElement>, Func<TKey,IEnumerable<TElement>,TResult>) GroupBy<TSource,TKey,TElement,TResult>(ParallelQuery<TSource>, Func<TSource,TKey>, Func<TSource,TElement>, Func<TKey,IEnumerable<TElement>,TResult>) GroupBy<TSource,TKey,TElement,TResult>(ParallelQuery<TSource>, Func<TSource,TKey>, Func<TSource,TElement>, Func<TKey,IEnumerable<TElement>,TResult>)

根据指定的键选择器函数对序列中的元素进行并行分组,并且从每个组及其键中创建结果值。Groups in parallel the elements of a sequence according to a specified key selector function and creates a result value from each group and its key. 通过使用指定的函数对每个组的元素进行投影。The elements of each group are projected by using a specified function.

GroupBy<TSource,TKey,TElement,TResult>(ParallelQuery<TSource>, Func<TSource,TKey>, Func<TSource,TElement>, Func<TKey,IEnumerable<TElement>,TResult>, IEqualityComparer<TKey>) GroupBy<TSource,TKey,TElement,TResult>(ParallelQuery<TSource>, Func<TSource,TKey>, Func<TSource,TElement>, Func<TKey,IEnumerable<TElement>,TResult>, IEqualityComparer<TKey>) GroupBy<TSource,TKey,TElement,TResult>(ParallelQuery<TSource>, Func<TSource,TKey>, Func<TSource,TElement>, Func<TKey,IEnumerable<TElement>,TResult>, IEqualityComparer<TKey>) GroupBy<TSource,TKey,TElement,TResult>(ParallelQuery<TSource>, Func<TSource,TKey>, Func<TSource,TElement>, Func<TKey,IEnumerable<TElement>,TResult>, IEqualityComparer<TKey>)

根据指定的键选择器函数对序列中的元素进行分组,并且从每个组及其键中创建结果值。Groups the elements of a sequence according to a specified key selector function and creates a result value from each group and its key. 通过使用指定的比较器对键值进行比较,并且通过使用指定的函数对每个组的元素进行投影。Key values are compared by using a specified comparer, and the elements of each group are projected by using a specified function.

Intersect<TSource>(ParallelQuery<TSource>, IEnumerable<TSource>) Intersect<TSource>(ParallelQuery<TSource>, IEnumerable<TSource>) Intersect<TSource>(ParallelQuery<TSource>, IEnumerable<TSource>) Intersect<TSource>(ParallelQuery<TSource>, IEnumerable<TSource>)

切勿调用此 Intersect 重载。This Intersect overload should never be called. 此方法已标记为过时,调用此方法时总是会引发 NotSupportedExceptionThis method is marked as obsolete and always throws NotSupportedException when called.

Intersect<TSource>(ParallelQuery<TSource>, IEnumerable<TSource>, IEqualityComparer<TSource>) Intersect<TSource>(ParallelQuery<TSource>, IEnumerable<TSource>, IEqualityComparer<TSource>) Intersect<TSource>(ParallelQuery<TSource>, IEnumerable<TSource>, IEqualityComparer<TSource>) Intersect<TSource>(ParallelQuery<TSource>, IEnumerable<TSource>, IEqualityComparer<TSource>)

切勿调用此 Intersect 重载。This Intersect overload should never be called. 此方法已标记为过时,调用此方法时总是会引发 NotSupportedExceptionThis method is marked as obsolete and always throws NotSupportedException when called.

Intersect<TSource>(ParallelQuery<TSource>, ParallelQuery<TSource>) Intersect<TSource>(ParallelQuery<TSource>, ParallelQuery<TSource>) Intersect<TSource>(ParallelQuery<TSource>, ParallelQuery<TSource>) Intersect<TSource>(ParallelQuery<TSource>, ParallelQuery<TSource>)

通过使用默认的相等比较器对值进行比较,生成两个并行序列的交集。Produces the set intersection of two parallel sequences by using the default equality comparer to compare values.

Intersect<TSource>(ParallelQuery<TSource>, ParallelQuery<TSource>, IEqualityComparer<TSource>) Intersect<TSource>(ParallelQuery<TSource>, ParallelQuery<TSource>, IEqualityComparer<TSource>) Intersect<TSource>(ParallelQuery<TSource>, ParallelQuery<TSource>, IEqualityComparer<TSource>) Intersect<TSource>(ParallelQuery<TSource>, ParallelQuery<TSource>, IEqualityComparer<TSource>)

通过使用指定的 IEqualityComparer{T} 对值进行比较,生成两个并行序列的交集。Produces the set intersection of two parallel sequences by using the specified IEqualityComparer{T} to compare values.

Last<TSource>(ParallelQuery<TSource>) Last<TSource>(ParallelQuery<TSource>) Last<TSource>(ParallelQuery<TSource>) Last<TSource>(ParallelQuery<TSource>)

返回并行序列中的最后一个元素。Returns the last element of a parallel sequence.

Last<TSource>(ParallelQuery<TSource>, Func<TSource,Boolean>) Last<TSource>(ParallelQuery<TSource>, Func<TSource,Boolean>) Last<TSource>(ParallelQuery<TSource>, Func<TSource,Boolean>) Last<TSource>(ParallelQuery<TSource>, Func<TSource,Boolean>)

返回并行序列中满足指定条件的最后一个元素。Returns the last element of a parallel sequence that satisfies a specified condition.

LastOrDefault<TSource>(ParallelQuery<TSource>) LastOrDefault<TSource>(ParallelQuery<TSource>) LastOrDefault<TSource>(ParallelQuery<TSource>) LastOrDefault<TSource>(ParallelQuery<TSource>)

返回并行序列中的最后一个元素;如果该序列中不包含任何元素,则返回默认值。Returns the last element of a parallel sequence, or a default value if the sequence contains no elements.

LastOrDefault<TSource>(ParallelQuery<TSource>, Func<TSource,Boolean>) LastOrDefault<TSource>(ParallelQuery<TSource>, Func<TSource,Boolean>) LastOrDefault<TSource>(ParallelQuery<TSource>, Func<TSource,Boolean>) LastOrDefault<TSource>(ParallelQuery<TSource>, Func<TSource,Boolean>)

返回并行序列中满足条件的最后一个元素;如果未找到这样的元素,则返回默认值。Returns the last element of a parallel sequence that satisfies a condition, or a default value if no such element is found.

LongCount<TSource>(ParallelQuery<TSource>) LongCount<TSource>(ParallelQuery<TSource>) LongCount<TSource>(ParallelQuery<TSource>) LongCount<TSource>(ParallelQuery<TSource>)

返回一个 Int64,表示并行序列中的元素的总数。Returns an Int64 that represents the total number of elements in a parallel sequence.

LongCount<TSource>(ParallelQuery<TSource>, Func<TSource,Boolean>) LongCount<TSource>(ParallelQuery<TSource>, Func<TSource,Boolean>) LongCount<TSource>(ParallelQuery<TSource>, Func<TSource,Boolean>) LongCount<TSource>(ParallelQuery<TSource>, Func<TSource,Boolean>)

返回一个 Int64,表示并行序列中满足条件的元素的数量。Returns an Int64 that represents how many elements in a parallel sequence satisfy a condition.

Max<TSource>(ParallelQuery<TSource>) Max<TSource>(ParallelQuery<TSource>) Max<TSource>(ParallelQuery<TSource>) Max<TSource>(ParallelQuery<TSource>)

返回值的并行序列中的最大值。Returns the maximum value in a parallel sequence of values.

Max<TSource>(ParallelQuery<TSource>, Func<TSource,Decimal>) Max<TSource>(ParallelQuery<TSource>, Func<TSource,Decimal>) Max<TSource>(ParallelQuery<TSource>, Func<TSource,Decimal>) Max<TSource>(ParallelQuery<TSource>, Func<TSource,Decimal>)

对一个序列中的每个元素并行调用转换函数,并返回最大值。Invokes in parallel a transform function on each element of a sequence and returns the maximum value.

Max<TSource>(ParallelQuery<TSource>, Func<TSource,Double>) Max<TSource>(ParallelQuery<TSource>, Func<TSource,Double>) Max<TSource>(ParallelQuery<TSource>, Func<TSource,Double>) Max<TSource>(ParallelQuery<TSource>, Func<TSource,Double>)

对一个序列中的每个元素并行调用转换函数,并返回最大值。Invokes in parallel a transform function on each element of a sequence and returns the maximum value.

Max<TSource>(ParallelQuery<TSource>, Func<TSource,Int32>) Max<TSource>(ParallelQuery<TSource>, Func<TSource,Int32>) Max<TSource>(ParallelQuery<TSource>, Func<TSource,Int32>) Max<TSource>(ParallelQuery<TSource>, Func<TSource,Int32>)

对一个序列中的每个元素并行调用转换函数,并返回最大值。Invokes in parallel a transform function on each element of a sequence and returns the maximum value.

Max<TSource>(ParallelQuery<TSource>, Func<TSource,Int64>) Max<TSource>(ParallelQuery<TSource>, Func<TSource,Int64>) Max<TSource>(ParallelQuery<TSource>, Func<TSource,Int64>) Max<TSource>(ParallelQuery<TSource>, Func<TSource,Int64>)

对一个序列中的每个元素并行调用转换函数,并返回最大值。Invokes in parallel a transform function on each element of a sequence and returns the maximum value.

Max<TSource>(ParallelQuery<TSource>, Func<TSource,Nullable<Decimal>>) Max<TSource>(ParallelQuery<TSource>, Func<TSource,Nullable<Decimal>>) Max<TSource>(ParallelQuery<TSource>, Func<TSource,Nullable<Decimal>>) Max<TSource>(ParallelQuery<TSource>, Func<TSource,Nullable<Decimal>>)

对一个序列中的每个元素并行调用转换函数,并返回最大值。Invokes in parallel a transform function on each element of a sequence and returns the maximum value.

Max<TSource>(ParallelQuery<TSource>, Func<TSource,Nullable<Double>>) Max<TSource>(ParallelQuery<TSource>, Func<TSource,Nullable<Double>>) Max<TSource>(ParallelQuery<TSource>, Func<TSource,Nullable<Double>>) Max<TSource>(ParallelQuery<TSource>, Func<TSource,Nullable<Double>>)

对一个序列中的每个元素并行调用转换函数,并返回最大值。Invokes in parallel a transform function on each element of a sequence and returns the maximum value.

Max<TSource>(ParallelQuery<TSource>, Func<TSource,Nullable<Int32>>) Max<TSource>(ParallelQuery<TSource>, Func<TSource,Nullable<Int32>>) Max<TSource>(ParallelQuery<TSource>, Func<TSource,Nullable<Int32>>) Max<TSource>(ParallelQuery<TSource>, Func<TSource,Nullable<Int32>>)

对一个序列中的每个元素并行调用转换函数,并返回最大值。Invokes in parallel a transform function on each element of a sequence and returns the maximum value.

Max<TSource>(ParallelQuery<TSource>, Func<TSource,Nullable<Int64>>) Max<TSource>(ParallelQuery<TSource>, Func<TSource,Nullable<Int64>>) Max<TSource>(ParallelQuery<TSource>, Func<TSource,Nullable<Int64>>) Max<TSource>(ParallelQuery<TSource>, Func<TSource,Nullable<Int64>>)

对一个序列中的每个元素并行调用转换函数,并返回最大值。Invokes in parallel a transform function on each element of a sequence and returns the maximum value.

Max<TSource>(ParallelQuery<TSource>, Func<TSource,Nullable<Single>>) Max<TSource>(ParallelQuery<TSource>, Func<TSource,Nullable<Single>>) Max<TSource>(ParallelQuery<TSource>, Func<TSource,Nullable<Single>>) Max<TSource>(ParallelQuery<TSource>, Func<TSource,Nullable<Single>>)

对一个序列中的每个元素并行调用转换函数,并返回最大值。Invokes in parallel a transform function on each element of a sequence and returns the maximum value.

Max<TSource>(ParallelQuery<TSource>, Func<TSource,Single>) Max<TSource>(ParallelQuery<TSource>, Func<TSource,Single>) Max<TSource>(ParallelQuery<TSource>, Func<TSource,Single>) Max<TSource>(ParallelQuery<TSource>, Func<TSource,Single>)

对一个序列中的每个元素并行调用转换函数,并返回最大值。Invokes in parallel a transform function on each element of a sequence and returns the maximum value.

Max<TSource,TResult>(ParallelQuery<TSource>, Func<TSource,TResult>) Max<TSource,TResult>(ParallelQuery<TSource>, Func<TSource,TResult>) Max<TSource,TResult>(ParallelQuery<TSource>, Func<TSource,TResult>) Max<TSource,TResult>(ParallelQuery<TSource>, Func<TSource,TResult>)

对一个序列中的每个元素并行调用转换函数,并返回最大值。Invokes in parallel a transform function on each element of a sequence and returns the maximum value.

Min<TSource>(ParallelQuery<TSource>) Min<TSource>(ParallelQuery<TSource>) Min<TSource>(ParallelQuery<TSource>) Min<TSource>(ParallelQuery<TSource>)

返回值的并行序列中的最小值。Returns the minimum value in a parallel sequence of values.

Min<TSource>(ParallelQuery<TSource>, Func<TSource,Decimal>) Min<TSource>(ParallelQuery<TSource>, Func<TSource,Decimal>) Min<TSource>(ParallelQuery<TSource>, Func<TSource,Decimal>) Min<TSource>(ParallelQuery<TSource>, Func<TSource,Decimal>)

对一个序列中的每个元素并行调用转换函数,并返回最小值。Invokes in parallel a transform function on each element of a sequence and returns the minimum value.

Min<TSource>(ParallelQuery<TSource>, Func<TSource,Double>) Min<TSource>(ParallelQuery<TSource>, Func<TSource,Double>) Min<TSource>(ParallelQuery<TSource>, Func<TSource,Double>) Min<TSource>(ParallelQuery<TSource>, Func<TSource,Double>)

对一个序列中的每个元素并行调用转换函数,并返回最小值。Invokes in parallel a transform function on each element of a sequence and returns the minimum value.

Min<TSource>(ParallelQuery<TSource>, Func<TSource,Int32>) Min<TSource>(ParallelQuery<TSource>, Func<TSource,Int32>) Min<TSource>(ParallelQuery<TSource>, Func<TSource,Int32>) Min<TSource>(ParallelQuery<TSource>, Func<TSource,Int32>)

对一个序列中的每个元素并行调用转换函数,并返回最小值。Invokes in parallel a transform function on each element of a sequence and returns the minimum value.

Min<TSource>(ParallelQuery<TSource>, Func<TSource,Int64>) Min<TSource>(ParallelQuery<TSource>, Func<TSource,Int64>) Min<TSource>(ParallelQuery<TSource>, Func<TSource,Int64>) Min<TSource>(ParallelQuery<TSource>, Func<TSource,Int64>)

对一个序列中的每个元素并行调用转换函数,并返回最小值。Invokes in parallel a transform function on each element of a sequence and returns the minimum value.

Min<TSource>(ParallelQuery<TSource>, Func<TSource,Nullable<Decimal>>) Min<TSource>(ParallelQuery<TSource>, Func<TSource,Nullable<Decimal>>) Min<TSource>(ParallelQuery<TSource>, Func<TSource,Nullable<Decimal>>) Min<TSource>(ParallelQuery<TSource>, Func<TSource,Nullable<Decimal>>)

对一个序列中的每个元素并行调用转换函数,并返回最小值。Invokes in parallel a transform function on each element of a sequence and returns the minimum value.

Min<TSource>(ParallelQuery<TSource>, Func<TSource,Nullable<Double>>) Min<TSource>(ParallelQuery<TSource>, Func<TSource,Nullable<Double>>) Min<TSource>(ParallelQuery<TSource>, Func<TSource,Nullable<Double>>) Min<TSource>(ParallelQuery<TSource>, Func<TSource,Nullable<Double>>)

对一个序列中的每个元素并行调用转换函数,并返回最小值。Invokes in parallel a transform function on each element of a sequence and returns the minimum value.

Min<TSource>(ParallelQuery<TSource>, Func<TSource,Nullable<Int32>>) Min<TSource>(ParallelQuery<TSource>, Func<TSource,Nullable<Int32>>) Min<TSource>(ParallelQuery<TSource>, Func<TSource,Nullable<Int32>>) Min<TSource>(ParallelQuery<TSource>, Func<TSource,Nullable<Int32>>)

对一个序列中的每个元素并行调用转换函数,并返回最小值。Invokes in parallel a transform function on each element of a sequence and returns the minimum value.

Min<TSource>(ParallelQuery<TSource>, Func<TSource,Nullable<Int64>>) Min<TSource>(ParallelQuery<TSource>, Func<TSource,Nullable<Int64>>) Min<TSource>(ParallelQuery<TSource>, Func<TSource,Nullable<Int64>>) Min<TSource>(ParallelQuery<TSource>, Func<TSource,Nullable<Int64>>)

对一个序列中的每个元素并行调用转换函数,并返回最小值。Invokes in parallel a transform function on each element of a sequence and returns the minimum value.

Min<TSource>(ParallelQuery<TSource>, Func<TSource,Nullable<Single>>) Min<TSource>(ParallelQuery<TSource>, Func<TSource,Nullable<Single>>) Min<TSource>(ParallelQuery<TSource>, Func<TSource,Nullable<Single>>) Min<TSource>(ParallelQuery<TSource>, Func<TSource,Nullable<Single>>)

对一个序列中的每个元素并行调用转换函数,并返回最小值。Invokes in parallel a transform function on each element of a sequence and returns the minimum value.

Min<TSource>(ParallelQuery<TSource>, Func<TSource,Single>) Min<TSource>(ParallelQuery<TSource>, Func<TSource,Single>) Min<TSource>(ParallelQuery<TSource>, Func<TSource,Single>) Min<TSource>(ParallelQuery<TSource>, Func<TSource,Single>)

对一个序列中的每个元素并行调用转换函数,并返回最小值。Invokes in parallel a transform function on each element of a sequence and returns the minimum value.

Min<TSource,TResult>(ParallelQuery<TSource>, Func<TSource,TResult>) Min<TSource,TResult>(ParallelQuery<TSource>, Func<TSource,TResult>) Min<TSource,TResult>(ParallelQuery<TSource>, Func<TSource,TResult>) Min<TSource,TResult>(ParallelQuery<TSource>, Func<TSource,TResult>)

对一个序列中的每个元素并行调用转换函数,并返回最小值。Invokes in parallel a transform function on each element of a sequence and returns the minimum value.

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

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

OrderBy<TSource,TKey>(ParallelQuery<TSource>, Func<TSource,TKey>) OrderBy<TSource,TKey>(ParallelQuery<TSource>, Func<TSource,TKey>) OrderBy<TSource,TKey>(ParallelQuery<TSource>, Func<TSource,TKey>) OrderBy<TSource,TKey>(ParallelQuery<TSource>, Func<TSource,TKey>)

根据键按升序对序列中的元素进行并行排序。Sorts in parallel the elements of a sequence in ascending order according to a key.

OrderBy<TSource,TKey>(ParallelQuery<TSource>, Func<TSource,TKey>, IComparer<TKey>) OrderBy<TSource,TKey>(ParallelQuery<TSource>, Func<TSource,TKey>, IComparer<TKey>) OrderBy<TSource,TKey>(ParallelQuery<TSource>, Func<TSource,TKey>, IComparer<TKey>) OrderBy<TSource,TKey>(ParallelQuery<TSource>, Func<TSource,TKey>, IComparer<TKey>)

使用指定的比较器按升序对序列中的元素进行并行排序。Sorts in parallel the elements of a sequence in ascending order by using a specified comparer.

OrderByDescending<TSource,TKey>(ParallelQuery<TSource>, Func<TSource,TKey>) OrderByDescending<TSource,TKey>(ParallelQuery<TSource>, Func<TSource,TKey>) OrderByDescending<TSource,TKey>(ParallelQuery<TSource>, Func<TSource,TKey>) OrderByDescending<TSource,TKey>(ParallelQuery<TSource>, Func<TSource,TKey>)

根据键按降序对序列中的元素进行并行排序。Sorts in parallel the elements of a sequence in descending order according to a key.

OrderByDescending<TSource,TKey>(ParallelQuery<TSource>, Func<TSource,TKey>, IComparer<TKey>) OrderByDescending<TSource,TKey>(ParallelQuery<TSource>, Func<TSource,TKey>, IComparer<TKey>) OrderByDescending<TSource,TKey>(ParallelQuery<TSource>, Func<TSource,TKey>, IComparer<TKey>) OrderByDescending<TSource,TKey>(ParallelQuery<TSource>, Func<TSource,TKey>, IComparer<TKey>)

使用指定的比较器按降序对序列的元素排序。Sorts the elements of a sequence in descending order by using a specified comparer.

Reverse<TSource>(ParallelQuery<TSource>) Reverse<TSource>(ParallelQuery<TSource>) Reverse<TSource>(ParallelQuery<TSource>) Reverse<TSource>(ParallelQuery<TSource>)

反转并行序列中元素的顺序。Inverts the order of the elements in a parallel sequence.

Select<TSource,TResult>(ParallelQuery<TSource>, Func<TSource,TResult>) Select<TSource,TResult>(ParallelQuery<TSource>, Func<TSource,TResult>) Select<TSource,TResult>(ParallelQuery<TSource>, Func<TSource,TResult>) Select<TSource,TResult>(ParallelQuery<TSource>, Func<TSource,TResult>)

将序列中的每个元素并行投影到新窗体中。Projects in parallel each element of a sequence into a new form.

Select<TSource,TResult>(ParallelQuery<TSource>, Func<TSource,Int32,TResult>) Select<TSource,TResult>(ParallelQuery<TSource>, Func<TSource,Int32,TResult>) Select<TSource,TResult>(ParallelQuery<TSource>, Func<TSource,Int32,TResult>) Select<TSource,TResult>(ParallelQuery<TSource>, Func<TSource,Int32,TResult>)

通过合并元素的索引,将序列的每个元素并行投影到新窗体中。Projects in parallel each element of a sequence into a new form by incorporating the element's index.

SelectMany<TSource,TResult>(ParallelQuery<TSource>, Func<TSource,IEnumerable<TResult>>) SelectMany<TSource,TResult>(ParallelQuery<TSource>, Func<TSource,IEnumerable<TResult>>) SelectMany<TSource,TResult>(ParallelQuery<TSource>, Func<TSource,IEnumerable<TResult>>) SelectMany<TSource,TResult>(ParallelQuery<TSource>, Func<TSource,IEnumerable<TResult>>)

将序列的每个元素以并行方式投影到 IEnumerable<T> 并将结果序列合并为一个序列。Projects in parallel each element of a sequence to an IEnumerable<T> and flattens the resulting sequences into one sequence.

SelectMany<TSource,TResult>(ParallelQuery<TSource>, Func<TSource,Int32,IEnumerable<TResult>>) SelectMany<TSource,TResult>(ParallelQuery<TSource>, Func<TSource,Int32,IEnumerable<TResult>>) SelectMany<TSource,TResult>(ParallelQuery<TSource>, Func<TSource,Int32,IEnumerable<TResult>>) SelectMany<TSource,TResult>(ParallelQuery<TSource>, Func<TSource,Int32,IEnumerable<TResult>>)

将序列的每个元素以并行方式投影到 IEnumerable<T> 并将结果序列合并为一个序列。Projects in parallel each element of a sequence to an IEnumerable<T>, and flattens the resulting sequences into one sequence. 每个源元素的索引用于该元素的投影表。The index of each source element is used in the projected form of that element.

SelectMany<TSource,TCollection,TResult>(ParallelQuery<TSource>, Func<TSource,IEnumerable<TCollection>>, Func<TSource,TCollection,TResult>) SelectMany<TSource,TCollection,TResult>(ParallelQuery<TSource>, Func<TSource,IEnumerable<TCollection>>, Func<TSource,TCollection,TResult>) SelectMany<TSource,TCollection,TResult>(ParallelQuery<TSource>, Func<TSource,IEnumerable<TCollection>>, Func<TSource,TCollection,TResult>) SelectMany<TSource,TCollection,TResult>(ParallelQuery<TSource>, Func<TSource,IEnumerable<TCollection>>, Func<TSource,TCollection,TResult>)

将序列的每个元素投影到 IEnumerable<T>,并将结果序列合并为一个序列,并对其中每个元素调用结果选择器函数。Projects each element of a sequence to an IEnumerable<T>, flattens the resulting sequences into one sequence, and invokes a result selector function on each element therein.

SelectMany<TSource,TCollection,TResult>(ParallelQuery<TSource>, Func<TSource,Int32,IEnumerable<TCollection>>, Func<TSource,TCollection,TResult>) SelectMany<TSource,TCollection,TResult>(ParallelQuery<TSource>, Func<TSource,Int32,IEnumerable<TCollection>>, Func<TSource,TCollection,TResult>) SelectMany<TSource,TCollection,TResult>(ParallelQuery<TSource>, Func<TSource,Int32,IEnumerable<TCollection>>, Func<TSource,TCollection,TResult>) SelectMany<TSource,TCollection,TResult>(ParallelQuery<TSource>, Func<TSource,Int32,IEnumerable<TCollection>>, Func<TSource,TCollection,TResult>)

将序列的每个元素投影到 IEnumerable<T>,并将结果序列合并为一个序列,并对其中每个元素调用结果选择器函数。Projects each element of a sequence to an IEnumerable<T>, flattens the resulting sequences into one sequence, and invokes a result selector function on each element therein. 每个源元素的索引用于该元素的中间投影表。The index of each source element is used in the intermediate projected form of that element.

SequenceEqual<TSource>(ParallelQuery<TSource>, IEnumerable<TSource>) SequenceEqual<TSource>(ParallelQuery<TSource>, IEnumerable<TSource>) SequenceEqual<TSource>(ParallelQuery<TSource>, IEnumerable<TSource>) SequenceEqual<TSource>(ParallelQuery<TSource>, IEnumerable<TSource>)

切勿调用此 SequenceEqual 重载。This SequenceEqual overload should never be called. 此方法已标记为过时,调用此方法时总是会引发 NotSupportedExceptionThis method is marked as obsolete and always throws NotSupportedException when called.

SequenceEqual<TSource>(ParallelQuery<TSource>, IEnumerable<TSource>, IEqualityComparer<TSource>) SequenceEqual<TSource>(ParallelQuery<TSource>, IEnumerable<TSource>, IEqualityComparer<TSource>) SequenceEqual<TSource>(ParallelQuery<TSource>, IEnumerable<TSource>, IEqualityComparer<TSource>) SequenceEqual<TSource>(ParallelQuery<TSource>, IEnumerable<TSource>, IEqualityComparer<TSource>)

切勿调用此 SequenceEqual 重载。This SequenceEqual overload should never be called. 此方法已标记为过时,调用此方法时总是会引发 NotSupportedExceptionThis method is marked as obsolete and always throws NotSupportedException when called.

SequenceEqual<TSource>(ParallelQuery<TSource>, ParallelQuery<TSource>) SequenceEqual<TSource>(ParallelQuery<TSource>, ParallelQuery<TSource>) SequenceEqual<TSource>(ParallelQuery<TSource>, ParallelQuery<TSource>) SequenceEqual<TSource>(ParallelQuery<TSource>, ParallelQuery<TSource>)

通过使用相应类型的默认相等比较器对序列的元素进行比较,以确定两个并行序列是否相等。Determines whether two parallel sequences are equal by comparing the elements by using the default equality comparer for their type.

SequenceEqual<TSource>(ParallelQuery<TSource>, ParallelQuery<TSource>, IEqualityComparer<TSource>) SequenceEqual<TSource>(ParallelQuery<TSource>, ParallelQuery<TSource>, IEqualityComparer<TSource>) SequenceEqual<TSource>(ParallelQuery<TSource>, ParallelQuery<TSource>, IEqualityComparer<TSource>) SequenceEqual<TSource>(ParallelQuery<TSource>, ParallelQuery<TSource>, IEqualityComparer<TSource>)

使用指定的 IEqualityComparer{T} 对两个并行序列的元素进行比较,以确定这两个序列是否相等。Determines whether two parallel sequences are equal by comparing their elements by using a specified IEqualityComparer{T}.

Single<TSource>(ParallelQuery<TSource>) Single<TSource>(ParallelQuery<TSource>) Single<TSource>(ParallelQuery<TSource>) Single<TSource>(ParallelQuery<TSource>)

返回并行序列的唯一元素;如果该序列并非恰好包含一个元素,则会引发异常。Returns the only element of a parallel sequence, and throws an exception if there is not exactly one element in the sequence.

Single<TSource>(ParallelQuery<TSource>, Func<TSource,Boolean>) Single<TSource>(ParallelQuery<TSource>, Func<TSource,Boolean>) Single<TSource>(ParallelQuery<TSource>, Func<TSource,Boolean>) Single<TSource>(ParallelQuery<TSource>, Func<TSource,Boolean>)

返回并行序列中满足指定条件的唯一元素;如果有多个这样的元素存在,则会引发异常。Returns the only element of a parallel sequence that satisfies a specified condition, and throws an exception if more than one such element exists.

SingleOrDefault<TSource>(ParallelQuery<TSource>) SingleOrDefault<TSource>(ParallelQuery<TSource>) SingleOrDefault<TSource>(ParallelQuery<TSource>) SingleOrDefault<TSource>(ParallelQuery<TSource>)

返回并行序列中的唯一元素;如果该序列为空,则返回默认值;如果该序列包含多个元素,此方法将引发异常。Returns the only element of a parallel sequence, or a default value if the sequence is empty; this method throws an exception if there is more than one element in the sequence.

SingleOrDefault<TSource>(ParallelQuery<TSource>, Func<TSource,Boolean>) SingleOrDefault<TSource>(ParallelQuery<TSource>, Func<TSource,Boolean>) SingleOrDefault<TSource>(ParallelQuery<TSource>, Func<TSource,Boolean>) SingleOrDefault<TSource>(ParallelQuery<TSource>, Func<TSource,Boolean>)

返回并行序列中满足指定条件的唯一元素;如果这类元素不存在,则返回默认值;如果有多个元素满足该条件,此方法将引发异常。Returns the only element of a parallel sequence that satisfies a specified condition or a default value if no such element exists; this method throws an exception if more than one element satisfies the condition.

Skip<TSource>(ParallelQuery<TSource>, Int32) Skip<TSource>(ParallelQuery<TSource>, Int32) Skip<TSource>(ParallelQuery<TSource>, Int32) Skip<TSource>(ParallelQuery<TSource>, Int32)

跳过并行序列中指定数量的元素,然后返回剩余的元素。Bypasses a specified number of elements in a parallel sequence and then returns the remaining elements.

SkipWhile<TSource>(ParallelQuery<TSource>, Func<TSource,Boolean>) SkipWhile<TSource>(ParallelQuery<TSource>, Func<TSource,Boolean>) SkipWhile<TSource>(ParallelQuery<TSource>, Func<TSource,Boolean>) SkipWhile<TSource>(ParallelQuery<TSource>, Func<TSource,Boolean>)

跳过并行序列中满足指定条件的任何元素,然后返回剩余元素。Bypasses elements in a parallel sequence as long as a specified condition is true and then returns the remaining elements.

SkipWhile<TSource>(ParallelQuery<TSource>, Func<TSource,Int32,Boolean>) SkipWhile<TSource>(ParallelQuery<TSource>, Func<TSource,Int32,Boolean>) SkipWhile<TSource>(ParallelQuery<TSource>, Func<TSource,Int32,Boolean>) SkipWhile<TSource>(ParallelQuery<TSource>, Func<TSource,Int32,Boolean>)

跳过并行序列中满足指定条件的任何元素,然后返回剩余元素。Bypasses elements in a parallel sequence as long as a specified condition is true and then returns the remaining elements. 将在谓词函数的逻辑中使用元素的索引。The element's index is used in the logic of the predicate function.

Sum<TSource>(ParallelQuery<TSource>, Func<TSource,Decimal>) Sum<TSource>(ParallelQuery<TSource>, Func<TSource,Decimal>) Sum<TSource>(ParallelQuery<TSource>, Func<TSource,Decimal>) Sum<TSource>(ParallelQuery<TSource>, Func<TSource,Decimal>)

并行计算一个值序列的和,这些值可通过对输入序列的每个元素调用转换函数获得。Computes in parallel the sum of the sequence of values that are obtained by invoking a transform function on each element of the input sequence.

Sum<TSource>(ParallelQuery<TSource>, Func<TSource,Double>) Sum<TSource>(ParallelQuery<TSource>, Func<TSource,Double>) Sum<TSource>(ParallelQuery<TSource>, Func<TSource,Double>) Sum<TSource>(ParallelQuery<TSource>, Func<TSource,Double>)

并行计算一个值序列的和,这些值可通过对输入序列的每个元素调用转换函数获得。Computes in parallel the sum of the sequence of values that are obtained by invoking a transform function on each element of the input sequence.

Sum<TSource>(ParallelQuery<TSource>, Func<TSource,Int32>) Sum<TSource>(ParallelQuery<TSource>, Func<TSource,Int32>) Sum<TSource>(ParallelQuery<TSource>, Func<TSource,Int32>) Sum<TSource>(ParallelQuery<TSource>, Func<TSource,Int32>)

并行计算一个值序列的和,这些值可通过对输入序列的每个元素调用转换函数获得。Computes in parallel the sum of the sequence of values that are obtained by invoking a transform function on each element of the input sequence.

Sum<TSource>(ParallelQuery<TSource>, Func<TSource,Int64>) Sum<TSource>(ParallelQuery<TSource>, Func<TSource,Int64>) Sum<TSource>(ParallelQuery<TSource>, Func<TSource,Int64>) Sum<TSource>(ParallelQuery<TSource>, Func<TSource,Int64>)

并行计算一个值序列的和,这些值可通过对输入序列的每个元素调用转换函数获得。Computes in parallel the sum of the sequence of values that are obtained by invoking a transform function on each element of the input sequence.

Sum<TSource>(ParallelQuery<TSource>, Func<TSource,Nullable<Decimal>>) Sum<TSource>(ParallelQuery<TSource>, Func<TSource,Nullable<Decimal>>) Sum<TSource>(ParallelQuery<TSource>, Func<TSource,Nullable<Decimal>>) Sum<TSource>(ParallelQuery<TSource>, Func<TSource,Nullable<Decimal>>)

并行计算一个值序列的和,这些值可通过对输入序列的每个元素调用转换函数获得。Computes in parallel the sum of the sequence of values that are obtained by invoking a transform function on each element of the input sequence.

Sum<TSource>(ParallelQuery<TSource>, Func<TSource,Nullable<Double>>) Sum<TSource>(ParallelQuery<TSource>, Func<TSource,Nullable<Double>>) Sum<TSource>(ParallelQuery<TSource>, Func<TSource,Nullable<Double>>) Sum<TSource>(ParallelQuery<TSource>, Func<TSource,Nullable<Double>>)

并行计算一个值序列的和,这些值可通过对输入序列的每个元素调用转换函数获得。Computes in parallel the sum of the sequence of values that are obtained by invoking a transform function on each element of the input sequence.

Sum<TSource>(ParallelQuery<TSource>, Func<TSource,Nullable<Int32>>) Sum<TSource>(ParallelQuery<TSource>, Func<TSource,Nullable<Int32>>) Sum<TSource>(ParallelQuery<TSource>, Func<TSource,Nullable<Int32>>) Sum<TSource>(ParallelQuery<TSource>, Func<TSource,Nullable<Int32>>)

并行计算一个值序列的和,这些值可通过对输入序列的每个元素调用转换函数获得。Computes in parallel the sum of the sequence of values that are obtained by invoking a transform function on each element of the input sequence.

Sum<TSource>(ParallelQuery<TSource>, Func<TSource,Nullable<Int64>>) Sum<TSource>(ParallelQuery<TSource>, Func<TSource,Nullable<Int64>>) Sum<TSource>(ParallelQuery<TSource>, Func<TSource,Nullable<Int64>>) Sum<TSource>(ParallelQuery<TSource>, Func<TSource,Nullable<Int64>>)

并行计算一个值序列的和,这些值可通过对输入序列的每个元素调用转换函数获得。Computes in parallel the sum of the sequence of values that are obtained by invoking a transform function on each element of the input sequence.

Sum<TSource>(ParallelQuery<TSource>, Func<TSource,Nullable<Single>>) Sum<TSource>(ParallelQuery<TSource>, Func<TSource,Nullable<Single>>) Sum<TSource>(ParallelQuery<TSource>, Func<TSource,Nullable<Single>>) Sum<TSource>(ParallelQuery<TSource>, Func<TSource,Nullable<Single>>)

并行计算一个值序列的和,这些值可通过对输入序列的每个元素调用转换函数获得。Computes in parallel the sum of the sequence of values that are obtained by invoking a transform function on each element of the input sequence.

Sum<TSource>(ParallelQuery<TSource>, Func<TSource,Single>) Sum<TSource>(ParallelQuery<TSource>, Func<TSource,Single>) Sum<TSource>(ParallelQuery<TSource>, Func<TSource,Single>) Sum<TSource>(ParallelQuery<TSource>, Func<TSource,Single>)

并行计算一个值序列的和,这些值可通过对输入序列的每个元素调用转换函数获得。Computes in parallel the sum of the sequence of values that are obtained by invoking a transform function on each element of the input sequence.

Take<TSource>(ParallelQuery<TSource>, Int32) Take<TSource>(ParallelQuery<TSource>, Int32) Take<TSource>(ParallelQuery<TSource>, Int32) Take<TSource>(ParallelQuery<TSource>, Int32)

从并行序列的开头返回指定数量的连续元素。Returns a specified number of contiguous elements from the start of a parallel sequence.

TakeWhile<TSource>(ParallelQuery<TSource>, Func<TSource,Boolean>) TakeWhile<TSource>(ParallelQuery<TSource>, Func<TSource,Boolean>) TakeWhile<TSource>(ParallelQuery<TSource>, Func<TSource,Boolean>) TakeWhile<TSource>(ParallelQuery<TSource>, Func<TSource,Boolean>)

只要指定的条件为 true,就会返回并行序列的元素。Returns elements from a parallel sequence as long as a specified condition is true.

TakeWhile<TSource>(ParallelQuery<TSource>, Func<TSource,Int32,Boolean>) TakeWhile<TSource>(ParallelQuery<TSource>, Func<TSource,Int32,Boolean>) TakeWhile<TSource>(ParallelQuery<TSource>, Func<TSource,Int32,Boolean>) TakeWhile<TSource>(ParallelQuery<TSource>, Func<TSource,Int32,Boolean>)

只要指定的条件为 true,就会返回并行序列的元素。Returns elements from a parallel sequence as long as a specified condition is true. 将在谓词函数的逻辑中使用元素的索引。The element's index is used in the logic of the predicate function.

ToArray<TSource>(ParallelQuery<TSource>) ToArray<TSource>(ParallelQuery<TSource>) ToArray<TSource>(ParallelQuery<TSource>) ToArray<TSource>(ParallelQuery<TSource>)

ParallelQuery<TSource> 中创建数组。Creates an array from a ParallelQuery<TSource>.

ToDictionary<TSource,TKey>(ParallelQuery<TSource>, Func<TSource,TKey>) ToDictionary<TSource,TKey>(ParallelQuery<TSource>, Func<TSource,TKey>) ToDictionary<TSource,TKey>(ParallelQuery<TSource>, Func<TSource,TKey>) ToDictionary<TSource,TKey>(ParallelQuery<TSource>, Func<TSource,TKey>)

根据指定的键选择器函数,从 Dictionary<TKey,TValue> 创建一个 ParallelQuery<TSource>Creates a Dictionary<TKey,TValue> from a ParallelQuery<TSource> according to a specified key selector function.

ToDictionary<TSource,TKey>(ParallelQuery<TSource>, Func<TSource,TKey>, IEqualityComparer<TKey>) ToDictionary<TSource,TKey>(ParallelQuery<TSource>, Func<TSource,TKey>, IEqualityComparer<TKey>) ToDictionary<TSource,TKey>(ParallelQuery<TSource>, Func<TSource,TKey>, IEqualityComparer<TKey>) ToDictionary<TSource,TKey>(ParallelQuery<TSource>, Func<TSource,TKey>, IEqualityComparer<TKey>)

根据指定的键选择器函数和键比较器,从 ParallelQuery<TSource> 创建一个 Dictionary<TKey,TValue>Creates a Dictionary<TKey,TValue> from a ParallelQuery<TSource> according to a specified key selector function and key comparer.

ToDictionary<TSource,TKey,TElement>(ParallelQuery<TSource>, Func<TSource,TKey>, Func<TSource,TElement>) ToDictionary<TSource,TKey,TElement>(ParallelQuery<TSource>, Func<TSource,TKey>, Func<TSource,TElement>) ToDictionary<TSource,TKey,TElement>(ParallelQuery<TSource>, Func<TSource,TKey>, Func<TSource,TElement>) ToDictionary<TSource,TKey,TElement>(ParallelQuery<TSource>, Func<TSource,TKey>, Func<TSource,TElement>)

根据指定的键选择器和元素选择器函数,从 Dictionary<TKey,TValue> 创建一个 ParallelQuery<TSource>Creates a Dictionary<TKey,TValue> from a ParallelQuery<TSource> according to specified key selector and element selector functions.

ToDictionary<TSource,TKey,TElement>(ParallelQuery<TSource>, Func<TSource,TKey>, Func<TSource,TElement>, IEqualityComparer<TKey>) ToDictionary<TSource,TKey,TElement>(ParallelQuery<TSource>, Func<TSource,TKey>, Func<TSource,TElement>, IEqualityComparer<TKey>) ToDictionary<TSource,TKey,TElement>(ParallelQuery<TSource>, Func<TSource,TKey>, Func<TSource,TElement>, IEqualityComparer<TKey>) ToDictionary<TSource,TKey,TElement>(ParallelQuery<TSource>, Func<TSource,TKey>, Func<TSource,TElement>, IEqualityComparer<TKey>)

根据指定的键选择器函数、比较器和元素选择器函数,从 Dictionary<TKey,TValue> 创建一个 ParallelQuery<TSource>Creates a Dictionary<TKey,TValue> from a ParallelQuery<TSource> according to a specified key selector function, a comparer, and an element selector function.

ToList<TSource>(ParallelQuery<TSource>) ToList<TSource>(ParallelQuery<TSource>) ToList<TSource>(ParallelQuery<TSource>) ToList<TSource>(ParallelQuery<TSource>)

ParallelQuery<TSource> 创建一个 List<T>Creates a List<T> from an ParallelQuery<TSource>.

ToLookup<TSource,TKey>(ParallelQuery<TSource>, Func<TSource,TKey>) ToLookup<TSource,TKey>(ParallelQuery<TSource>, Func<TSource,TKey>) ToLookup<TSource,TKey>(ParallelQuery<TSource>, Func<TSource,TKey>) ToLookup<TSource,TKey>(ParallelQuery<TSource>, Func<TSource,TKey>)

根据指定的键选择器函数,从 ILookup<TKey,TElement> 创建一个 ParallelQuery<TSource>Creates an ILookup<TKey,TElement> from a ParallelQuery<TSource> according to a specified key selector function.

ToLookup<TSource,TKey>(ParallelQuery<TSource>, Func<TSource,TKey>, IEqualityComparer<TKey>) ToLookup<TSource,TKey>(ParallelQuery<TSource>, Func<TSource,TKey>, IEqualityComparer<TKey>) ToLookup<TSource,TKey>(ParallelQuery<TSource>, Func<TSource,TKey>, IEqualityComparer<TKey>) ToLookup<TSource,TKey>(ParallelQuery<TSource>, Func<TSource,TKey>, IEqualityComparer<TKey>)

根据指定的键选择器函数和键比较器,从 ILookup<TKey,TElement> 创建一个 ParallelQuery<TSource>Creates an ILookup<TKey,TElement> from a ParallelQuery<TSource> according to a specified key selector function and key comparer.

ToLookup<TSource,TKey,TElement>(ParallelQuery<TSource>, Func<TSource,TKey>, Func<TSource,TElement>) ToLookup<TSource,TKey,TElement>(ParallelQuery<TSource>, Func<TSource,TKey>, Func<TSource,TElement>) ToLookup<TSource,TKey,TElement>(ParallelQuery<TSource>, Func<TSource,TKey>, Func<TSource,TElement>) ToLookup<TSource,TKey,TElement>(ParallelQuery<TSource>, Func<TSource,TKey>, Func<TSource,TElement>)

根据指定的键选择器和元素选择器函数,从 ILookup<TKey,TElement> 创建一个 ParallelQuery<TSource>Creates an ILookup<TKey,TElement> from a ParallelQuery<TSource> according to specified key selector and element selector functions.

ToLookup<TSource,TKey,TElement>(ParallelQuery<TSource>, Func<TSource,TKey>, Func<TSource,TElement>, IEqualityComparer<TKey>) ToLookup<TSource,TKey,TElement>(ParallelQuery<TSource>, Func<TSource,TKey>, Func<TSource,TElement>, IEqualityComparer<TKey>) ToLookup<TSource,TKey,TElement>(ParallelQuery<TSource>, Func<TSource,TKey>, Func<TSource,TElement>, IEqualityComparer<TKey>) ToLookup<TSource,TKey,TElement>(ParallelQuery<TSource>, Func<TSource,TKey>, Func<TSource,TElement>, IEqualityComparer<TKey>)

根据指定的键选择器函数、比较器和元素选择器函数从 ILookup<TKey,TElement> 创建一个 ParallelQuery<TSource>Creates an ILookup<TKey,TElement> from a ParallelQuery<TSource> according to a specified key selector function, a comparer and an element selector function.

Union<TSource>(ParallelQuery<TSource>, IEnumerable<TSource>) Union<TSource>(ParallelQuery<TSource>, IEnumerable<TSource>) Union<TSource>(ParallelQuery<TSource>, IEnumerable<TSource>) Union<TSource>(ParallelQuery<TSource>, IEnumerable<TSource>)

切勿调用此 Union 重载。This Union overload should never be called. 此方法已标记为过时,调用此方法时总是会引发 NotSupportedExceptionThis method is marked as obsolete and always throws NotSupportedException when called.

Union<TSource>(ParallelQuery<TSource>, IEnumerable<TSource>, IEqualityComparer<TSource>) Union<TSource>(ParallelQuery<TSource>, IEnumerable<TSource>, IEqualityComparer<TSource>) Union<TSource>(ParallelQuery<TSource>, IEnumerable<TSource>, IEqualityComparer<TSource>) Union<TSource>(ParallelQuery<TSource>, IEnumerable<TSource>, IEqualityComparer<TSource>)

切勿调用此 Union 重载。This Union overload should never be called. 此方法已标记为过时,调用此方法时总是会引发 NotSupportedExceptionThis method is marked as obsolete and always throws NotSupportedException when called.

Union<TSource>(ParallelQuery<TSource>, ParallelQuery<TSource>) Union<TSource>(ParallelQuery<TSource>, ParallelQuery<TSource>) Union<TSource>(ParallelQuery<TSource>, ParallelQuery<TSource>) Union<TSource>(ParallelQuery<TSource>, ParallelQuery<TSource>)

通过使用默认的相等比较器,生成两个并行序列的并集。Produces the set union of two parallel sequences by using the default equality comparer.

Union<TSource>(ParallelQuery<TSource>, ParallelQuery<TSource>, IEqualityComparer<TSource>) Union<TSource>(ParallelQuery<TSource>, ParallelQuery<TSource>, IEqualityComparer<TSource>) Union<TSource>(ParallelQuery<TSource>, ParallelQuery<TSource>, IEqualityComparer<TSource>) Union<TSource>(ParallelQuery<TSource>, ParallelQuery<TSource>, IEqualityComparer<TSource>)

通过使用指定的 IEqualityComparer{T} 生成两个并行序列的并集。Produces the set union of two parallel sequences by using a specified IEqualityComparer{T}.

Where<TSource>(ParallelQuery<TSource>, Func<TSource,Boolean>) Where<TSource>(ParallelQuery<TSource>, Func<TSource,Boolean>) Where<TSource>(ParallelQuery<TSource>, Func<TSource,Boolean>) Where<TSource>(ParallelQuery<TSource>, Func<TSource,Boolean>)

基于谓词并行筛选值序列。Filters in parallel a sequence of values based on a predicate.

Where<TSource>(ParallelQuery<TSource>, Func<TSource,Int32,Boolean>) Where<TSource>(ParallelQuery<TSource>, Func<TSource,Int32,Boolean>) Where<TSource>(ParallelQuery<TSource>, Func<TSource,Int32,Boolean>) Where<TSource>(ParallelQuery<TSource>, Func<TSource,Int32,Boolean>)

基于谓词并行筛选值序列。Filters in parallel a sequence of values based on a predicate. 将在谓词函数的逻辑中使用每个元素的索引。Each element's index is used in the logic of the predicate function.

WithCancellation<TSource>(ParallelQuery<TSource>, CancellationToken) WithCancellation<TSource>(ParallelQuery<TSource>, CancellationToken) WithCancellation<TSource>(ParallelQuery<TSource>, CancellationToken) WithCancellation<TSource>(ParallelQuery<TSource>, CancellationToken)

设置要与查询关联的 CancellationTokenSets the CancellationToken to associate with the query.

WithDegreeOfParallelism<TSource>(ParallelQuery<TSource>, Int32) WithDegreeOfParallelism<TSource>(ParallelQuery<TSource>, Int32) WithDegreeOfParallelism<TSource>(ParallelQuery<TSource>, Int32) WithDegreeOfParallelism<TSource>(ParallelQuery<TSource>, Int32)

设置要在查询中使用的并行度。Sets the degree of parallelism to use in a query. 并行度是将用于处理查询的同时执行的任务的最大数目。Degree of parallelism is the maximum number of concurrently executing tasks that will be used to process the query.

WithExecutionMode<TSource>(ParallelQuery<TSource>, ParallelExecutionMode) WithExecutionMode<TSource>(ParallelQuery<TSource>, ParallelExecutionMode) WithExecutionMode<TSource>(ParallelQuery<TSource>, ParallelExecutionMode) WithExecutionMode<TSource>(ParallelQuery<TSource>, ParallelExecutionMode)

设置查询的执行模式。Sets the execution mode of the query.

WithMergeOptions<TSource>(ParallelQuery<TSource>, ParallelMergeOptions) WithMergeOptions<TSource>(ParallelQuery<TSource>, ParallelMergeOptions) WithMergeOptions<TSource>(ParallelQuery<TSource>, ParallelMergeOptions) WithMergeOptions<TSource>(ParallelQuery<TSource>, ParallelMergeOptions)

设置此查询的合并选项,它指定查询对输出进行缓冲处理的方式。Sets the merge options for this query, which specify how the query will buffer output.

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

IEnumerable 转换为 IQueryableConverts an IEnumerable to an IQueryable.

Ancestors<T>(IEnumerable<T>) Ancestors<T>(IEnumerable<T>) Ancestors<T>(IEnumerable<T>) Ancestors<T>(IEnumerable<T>)

返回元素集合,其中包含源集合中每个节点的上级。Returns a collection of elements that contains the ancestors of every node in the source collection.

Ancestors<T>(IEnumerable<T>, XName) Ancestors<T>(IEnumerable<T>, XName) Ancestors<T>(IEnumerable<T>, XName) Ancestors<T>(IEnumerable<T>, XName)

返回经过筛选的元素集合,其中包含源集合中每个节点的上级。Returns a filtered collection of elements that contains the ancestors of every node in the source collection. 集合中仅包括具有匹配 XName 的元素。Only elements that have a matching XName are included in the collection.

DescendantNodes<T>(IEnumerable<T>) DescendantNodes<T>(IEnumerable<T>) DescendantNodes<T>(IEnumerable<T>) DescendantNodes<T>(IEnumerable<T>)

返回源集合中每个文档和元素的子代节点的集合。Returns a collection of the descendant nodes of every document and element in the source collection.

Descendants<T>(IEnumerable<T>) Descendants<T>(IEnumerable<T>) Descendants<T>(IEnumerable<T>) Descendants<T>(IEnumerable<T>)

返回元素集合,其中包含源集合中每个元素和文档的子代元素。Returns a collection of elements that contains the descendant elements of every element and document in the source collection.

Descendants<T>(IEnumerable<T>, XName) Descendants<T>(IEnumerable<T>, XName) Descendants<T>(IEnumerable<T>, XName) Descendants<T>(IEnumerable<T>, XName)

返回经过筛选的元素集合,其中包含源集合中每个元素和文档的子代元素。Returns a filtered collection of elements that contains the descendant elements of every element and document in the source collection. 集合中仅包括具有匹配 XName 的元素。Only elements that have a matching XName are included in the collection.

Elements<T>(IEnumerable<T>) Elements<T>(IEnumerable<T>) Elements<T>(IEnumerable<T>) Elements<T>(IEnumerable<T>)

返回源集合中每个元素和文档的子元素的集合。Returns a collection of the child elements of every element and document in the source collection.

Elements<T>(IEnumerable<T>, XName) Elements<T>(IEnumerable<T>, XName) Elements<T>(IEnumerable<T>, XName) Elements<T>(IEnumerable<T>, XName)

返回源集合中经过筛选的每个元素和文档的子元素集合。Returns a filtered collection of the child elements of every element and document in the source collection. 集合中仅包括具有匹配 XName 的元素。Only elements that have a matching XName are included in the collection.

InDocumentOrder<T>(IEnumerable<T>) InDocumentOrder<T>(IEnumerable<T>) InDocumentOrder<T>(IEnumerable<T>) InDocumentOrder<T>(IEnumerable<T>)

返回节点集合(其中包含源集合中的所有节点),并按文档顺序排列。Returns a collection of nodes that contains all nodes in the source collection, sorted in document order.

Nodes<T>(IEnumerable<T>) Nodes<T>(IEnumerable<T>) Nodes<T>(IEnumerable<T>) Nodes<T>(IEnumerable<T>)

返回源集合中每个文档和元素的子节点集合。Returns a collection of the child nodes of every document and element in the source collection.

Remove<T>(IEnumerable<T>) Remove<T>(IEnumerable<T>) Remove<T>(IEnumerable<T>) Remove<T>(IEnumerable<T>)

将源集合中的每个节点从其父节点中移除。Removes every node in the source collection from its parent node.

适用于

另请参阅