Partager via


Activity.RegisterForStatusChange Méthode

Définition

Inscrit le DependencyProperty spécifié pour l'événement de modification de l'état.

public:
 void RegisterForStatusChange(System::Workflow::ComponentModel::DependencyProperty ^ dependencyProp, System::Workflow::ComponentModel::IActivityEventListener<System::Workflow::ComponentModel::ActivityExecutionStatusChangedEventArgs ^> ^ activityStatusChangeListener);
public void RegisterForStatusChange (System.Workflow.ComponentModel.DependencyProperty dependencyProp, System.Workflow.ComponentModel.IActivityEventListener<System.Workflow.ComponentModel.ActivityExecutionStatusChangedEventArgs> activityStatusChangeListener);
member this.RegisterForStatusChange : System.Workflow.ComponentModel.DependencyProperty * System.Workflow.ComponentModel.IActivityEventListener<System.Workflow.ComponentModel.ActivityExecutionStatusChangedEventArgs> -> unit
Public Sub RegisterForStatusChange (dependencyProp As DependencyProperty, activityStatusChangeListener As IActivityEventListener(Of ActivityExecutionStatusChangedEventArgs))

Paramètres

dependencyProp
DependencyProperty

DependencyProperty à inscrire.

activityStatusChangeListener
IActivityEventListener<ActivityExecutionStatusChangedEventArgs>

Objet qui implémente l'interface d'écouteur d'événements pour cette inscription.

Exceptions

S’applique à