IActivityEventListener<T> Interface

Definition

Caution

The System.Workflow.* types are deprecated. Instead, please use the new types from System.Activities.*

Defines the interface for an object that listens for an event.

C#
public interface IActivityEventListener<T> where T : EventArgs
C#
[System.Obsolete("The System.Workflow.* types are deprecated.  Instead, please use the new types from System.Activities.*")]
public interface IActivityEventListener<T> where T : EventArgs

Type Parameters

T

The type of the event argument.

Derived
Attributes

Remarks

備註

This material discusses types and namespaces that are obsolete. For more information, see Deprecated Types in Windows Workflow Foundation 4.5.

The typing of the event arguments is important to this definition.

Methods

OnEvent(Object, T)

Defines the processing procedure when the subscribed-to event occurs.

Applies to

產品 版本 (已過時)
.NET Framework 3.0, 3.5, 4.0 (4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1)