Примечание
Для доступа к этой странице требуется авторизация. Вы можете попробовать войти или изменить каталоги.
Для доступа к этой странице требуется авторизация. Вы можете попробовать изменить каталоги.
Version: Available or changed with runtime version 1.0.
Sets whether a DotNet variable subscribes to the events published by a .NET Framework type.
Note
This attribute is supported only in Business Central on-premises.
Applies to
- Variable
Syntax
[WithEvents]
Remarks
You can only subscribe to events that are emitted by global variables of the .NET type marked with the WithEvents property. For all the global variables that are marked with this property, the compiler will expose the events available on the type as triggers on the variable. The syntax for declaring these triggers is {VariableName}::{EventName}(...ParameterList)
, but IntelliSense will offer suggestions for the event name and autocomplete the parameter list.