Udostępnij za pośrednictwem


Activity.RegisterForStatusChange Metoda

Definicja

Rejestruje określone DependencyProperty zdarzenie zmiany stanu.

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

Parametry

dependencyProp
DependencyProperty

Identyfikator do zarejestrowania DependencyProperty .

activityStatusChangeListener
IActivityEventListener<ActivityExecutionStatusChangedEventArgs>

Obiekt, który implementuje interfejs odbiornika zdarzeń dla tej rejestracji.

Wyjątki

Dotyczy