JSDO properties, methods, and events reference : unsubscribe( ) method (Session class)
  

unsubscribe( ) method (Session class)

Note: Deprecated in Progress Data Objects Version 4.4 and later. Please use the unsubscribe( ) method (JSDOSession class) instead.
Unsubscribes a given event callback function from an event of the current Session object.
Return type: null
Applies to: progress.data.Session class

Syntax

unsubscribe ( event-name , event-handler [ , scope ] )
event-name
The name of a Session object event to which you unsubscribe an event handler. See the refernce entry for progress.data.Session class for a list of available events.
event-handler
A reference to an event handler function that is called when the specified event fires.
scope
An optional object reference that defines the execution scope of the event handler function called when the event fires. Specifying the scope is optional in the event subscription. If the event subscription does specify an execution scope, you must specify a matching scope parameter when you call the unsubscribe( ) method to cancel the event subscription.
The unsubscribe( ) method throws an error object if event-name does not identify an event supported by the Session object (the lookup is case insensitive), if an argument is not of the correct type, or if there is a mismatch between the value of the scope argument and the scope specified in the corresponding subscribe( ) method call.

See also:

progress.data.Session class, subscribe( ) method (Session class), unsubscribeAll( ) method