共用方式為


Activity.RaiseGenericEvent<T>(DependencyProperty, Object, T) 方法

定義

引發與所參考 DependencyProperty 相關聯的事件。

protected public:
generic <typename T>
 where T : EventArgs void RaiseGenericEvent(System::Workflow::ComponentModel::DependencyProperty ^ dependencyEvent, System::Object ^ sender, T e);
protected internal void RaiseGenericEvent<T> (System.Workflow.ComponentModel.DependencyProperty dependencyEvent, object sender, T e) where T : EventArgs;
member this.RaiseGenericEvent : System.Workflow.ComponentModel.DependencyProperty * obj * 'T -> unit (requires 'T :> EventArgs)
Protected Friend Sub RaiseGenericEvent(Of T As EventArgs) (dependencyEvent As DependencyProperty, sender As Object, e As T)

類型參數

T

指定的型別。

參數

dependencyEvent
DependencyProperty

與這個 DependencyProperty 相關聯的 Event

sender
Object

事件的 Object 來源。

e
T

EventArgs 關聯的 Event

適用於