System.Bindings.EvalProtocol.ISubscribable.Subscribe

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function Subscribe(const ANotification: TSubscriptionNotification): ISubscription;

C++

virtual _di_ISubscription __fastcall Subscribe(const _di_TSubscriptionNotification ANotification) = 0 ;

Properties

Type Visibility Source Unit Parent
function public
System.Bindings.EvalProtocol.pas
System.Bindings.EvalProtocol.hpp
System.Bindings.EvalProtocol ISubscribable

Description

Called by subscribable objects when they change.

The Subscribe method is called by subscribable objects when they change, as long as the subscription is active. If ISubscription has Unsubscribe called on it, change notifications should cease.

The ANotification parameter specifies the callback routine that is called by the wrapper that implements this interface whenever the value held by the wrapper changes.

Subscribe returns the subscription reference corresponding to this subscribable object.

See Also