EventRegistrationTokenTable<T>.AddEventHandler(T) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Adds the specified event handler to the table and to the invocation list, and returns a token that can be used to remove the event handler.
public:
System::Runtime::InteropServices::WindowsRuntime::EventRegistrationToken AddEventHandler(T handler);
public System.Runtime.InteropServices.WindowsRuntime.EventRegistrationToken AddEventHandler (T handler);
public System.Runtime.InteropServices.WindowsRuntime.EventRegistrationToken AddEventHandler (T? handler);
member this.AddEventHandler : 'T -> System.Runtime.InteropServices.WindowsRuntime.EventRegistrationToken
Public Function AddEventHandler (handler As T) As EventRegistrationToken
Parameters
- handler
- T
The event handler to add.
Returns
A token that can be used to remove the event handler from the table and the invocation list.
Applies to
التعاون معنا على GitHub
يمكن العثور على مصدر هذا المحتوى على GitHub حيث يمكنك أيضاً إضافة مشاكل وطلبات سحب ومراجعتها. للحصول على معلومات إضافية، اطلع على دليل المساهم لدينا.