PreviousNextIndex

Unsubscribe( ) event method

Removes a method or procedure as a handler for an ABL or .NET class event.

Return type: VOID

Access: PUBLIC

Applies to: ABL or .NET class events

Syntax
[ publisher : ] event-name:Unsubscribe 
  ( [ subscriber : ] handler-method ) [ NO-ERROR ] 

[ publisher : ] event-name:Unsubscribe 
  ( [ subscriber-handle , ] handler-procedure ) [ NO-ERROR ] 

[ publisher : ]
event-name
[ subscriber : ] handler-method
[ subscriber-handle , ] handler-procedure
NO-ERROR

The Unsubscribe( ) method cancels an event subscription by removing the specified method or internal procedure from the list of handlers for the specified event-name. If you do not specify a publisher, you can only invoke Unsubscribe(  ) in an ABL class definition and on an ABL or .NET event that the ABL class defines or inherits. When you cancel an event handler subscription, ABL does not raise either a run-time error if the specified event handler is not currently on the subscription list for the specified event.

See also: Publish( ) event method, Subscribe( ) event method, UNSUBSCRIBE statement


OpenEdge Release 10.2B
Copyright © 2009 Progress Software Corporation
PreviousNextIndex