IActivityEventListener<T> 接口

定义

注意

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.

generic <typename T>
 where T : EventArgspublic interface class IActivityEventListener
public interface IActivityEventListener<T> where T : EventArgs
[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 IActivityEventListener<'T (requires 'T :> EventArgs)> = interface
[<System.Obsolete("The System.Workflow.* types are deprecated.  Instead, please use the new types from System.Activities.*")>]
type IActivityEventListener<'T (requires 'T :> EventArgs)> = interface
Public Interface IActivityEventListener(Of T)

类型参数

T

事件自变量的类型。The type of the event argument.

派生
属性

注解

备注

本材料讨论的类型和命名空间已废弃不用。This material discusses types and namespaces that are obsolete. 有关详细信息,请参阅 Windows Workflow Foundation 4.5 中弃用的类型For more information, see Deprecated Types in Windows Workflow Foundation 4.5.

事件参数的键入对于此定义非常重要。The typing of the event arguments is important to this definition.

方法

OnEvent(Object, T)

定义发生订阅事件时的处理过程。Defines the processing procedure when the subscribed-to event occurs.

适用于