Partilhar via


Activity.RegisterForStatusChange Método

Definição

Registra o DependencyProperty especificado para o evento de alteração de status.

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

Parâmetros

dependencyProp
DependencyProperty

O DependencyProperty a ser registrado.

activityStatusChangeListener
IActivityEventListener<ActivityExecutionStatusChangedEventArgs>

O objeto que implementa a interface de Ouvinte de Eventos para esse registro.

Exceções

Aplica-se a