ParallelForEach<T>.CompletionCondition 属性

定义

在每个迭代完成后计算。

public:
 property System::Activities::Activity<bool> ^ CompletionCondition { System::Activities::Activity<bool> ^ get(); void set(System::Activities::Activity<bool> ^ value); };
public System.Activities.Activity<bool> CompletionCondition { get; set; }
member this.CompletionCondition : System.Activities.Activity<bool> with get, set
Public Property CompletionCondition As Activity(Of Boolean)

属性值

完成表达式。

注解

如果其计算结果为 true,则取消已安排的挂起的迭代。 如果未设置此属性,则所有安排的语句都将执行,直至完成为止。

适用于