WorkflowMarkupSerializer.GetEvents 方法

定义

检索有关与指定 Object 关联的所有事件的信息。

protected public:
 virtual cli::array <System::Reflection::EventInfo ^> ^ GetEvents(System::Workflow::ComponentModel::Serialization::WorkflowMarkupSerializationManager ^ serializationManager, System::Object ^ obj);
protected internal virtual System.Reflection.EventInfo[] GetEvents (System.Workflow.ComponentModel.Serialization.WorkflowMarkupSerializationManager serializationManager, object obj);
abstract member GetEvents : System.Workflow.ComponentModel.Serialization.WorkflowMarkupSerializationManager * obj -> System.Reflection.EventInfo[]
override this.GetEvents : System.Workflow.ComponentModel.Serialization.WorkflowMarkupSerializationManager * obj -> System.Reflection.EventInfo[]
Protected Friend Overridable Function GetEvents (serializationManager As WorkflowMarkupSerializationManager, obj As Object) As EventInfo()

参数

serializationManager
WorkflowMarkupSerializationManager

管理反序列化过程的 WorkflowMarkupSerializationManager

obj
Object

要搜索事件对象的 Object

返回

EventInfo[]

一个 EventInfo 数组,其中包含有关与 obj 关联的事件的信息。

例外

serializationManagerobj 包含空引用(在 Visual Basic 中为 Nothing)。

适用于