| Visual Basic (Usage) | Copy Code |
|---|---|
Dim instance As Session Dim handler As OnNotification AddHandler instance.PublishNotification, handler | |
| C# | |
|---|---|
public event OnNotification PublishNotification | |
The event handler receives an argument of type NotificationEventArgs containing data related to this event. The following NotificationEventArgs properties provide information specific to this event.
| Property | Description |
|---|---|
| NotificationMessage | Gets the notification message. |
| StringTable | Gets the string table returned with the notification message. |
| Subscription | Gets the subscription that the notification applies to. |
All publish requests are managed by the Session object. When a response arrives it is
validated and passed to the appropriate Subscription object and this event is raised.
Target Platforms: Windows 7/8/10, Windows Server 2003/2008/2012/2015, .NET4.x