ActivityExecutionContext.CancelActivity(Activity) ActivityExecutionContext.CancelActivity(Activity) ActivityExecutionContext.CancelActivity(Activity) Method

定義

複合アクティビティが、子アクティビティの取り消し処理をスケジュールするために呼び出します。Called by a composite activity to schedule the cancellation of a child activity. Executing 状態の子アクティビティを取り消すことはできません。The workflow runtime disallows cancellation of a child activity that is not in the Executing state.

public:
 void CancelActivity(System::Workflow::ComponentModel::Activity ^ activity);
public void CancelActivity (System.Workflow.ComponentModel.Activity activity);
member this.CancelActivity : System.Workflow.ComponentModel.Activity -> unit

パラメーター

activity
Activity Activity Activity

取り消された ActivityThe canceled Activity.

例外

activitynullです。activity is null.

activityActivityExecutionContext の有効な子ではありません。activity is not a valid child of the ActivityExecutionContext. これは、引数が対応する Activity に等しいか、引数がコメントされた状態ではなく、この Activity に対応する ActivityExecutionContext の子であることを意味します。This means that either the argument is equal to the associated Activity or that the argument is not in the commented state and is a child of the Activity associated with this ActivityExecutionContext.

activityExecuting 状態ではありません。activity is not in the Executing state.

適用対象