共用方式為


EventFunction Property

Specifies the event publisher function that the event subscriber function subscribes to.

Applies to

  • C/AL functions.

    This property is only available when the Event Property is set to Subscriber.

Property Value

An event publisher function in the object that is specified in the EventPublisherObject Property.

Remarks

You use this property to set up an event subscriber function to respond to the event that is declared by the event publisher function. When the event is raised in the application, the event subscriber function is called.

You add C/AL code to this function that defines the logic to handle the event when it is called.

For more information about events, see Subscribing to Events..

See Also

Events in Microsoft Dynamics NAV
Publishing Events
Raising Events
C/AL Function Statements