unsubscribe_method_typeof | Precisamento

unsubscribe_method_typeof

Home
functions
constants
json
examples

Unsubscribes a method from an event.

Syntax

1
unsubscribe_method_typeof(type_name, event_name, publisher_id)
Argument Type Description
type_name string The name of the type that defines the event.
event_name string The name of the event.
publisher_id double If it’s an instance event, the id of the owner of the event. Otherwise, it must be less than zero (i.e. noone).

Returns: 1

Description

This function unsubscribes a method from an event. First load the method, then call this function. The method can be either a delegate (i.e. an Action) or it can be a MethodInfo.

References