Modifier

Partager via


EventHook type<T>

Important

The finance and operations (Dynamics 365) mobile app and platform are no longer supported. The platform components supporting the mobile app will be removed in a future update. The mobile app has also been removed from app stores. Previously installed instances of the app will continue to work. For more information, see Removed or deprecated platform features.

Hierarchy

EventHook

Index

Methods

Methods

subscribe

subscribe(listener: IEventListener <T>): void

Subscribe a listener to this event.

Parameters

Name Type Description
listener IEventListener <T>

Returns void

unsubscribe

unsubscribe(listener: IEventListener <T>): void

Unsubscribe a listener from this event.

Parameters

Name Type Description
listener IEventListener <T>

Returns void

unsubscribeAll

unsubscribeAll(): void

Remove all listeners from this event.

Returns void