Switch to: V12V11V10V9V8V7V6V5

VNotificationCenter Class: Construction Methods

VNotificationCenter.Constructor()

Declaration:

Constructor( inConnection as VConnection )

Parameters:

  • inConnection - A VConnection object.

Description:

Constructs instance of Notification Center using the specified connection. Please note that you should enable notifications for this connection before open it, using method VConnection.UseNotifications

Example:

   dim connection1 as VConnection // here we will keep connection to VServer.
 
   connection1 = new Connection( "localhost", "sa", "sa" )
   connection1.UseNotifications()
   connection1.Open()
 
   dim nc as VNotificationCenter( connection1 )
   ...
end sub