共用方式為


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

管理還原序列化 (Deserialization) 程序的 WorkflowMarkupSerializationManager

obj
Object

要搜尋事件物件的 Object

傳回

EventInfo[]

EventInfo 陣列,其中包含有關與 obj 相關聯之事件的資訊。

例外狀況

serializationManagerobj 包含 null 參考 (在 Visual Basic 中為 Nothing)。

適用於