DataDrivenAdapterBase.RegisterEventListenerBase Method

Definition

Adds the specified listenerCallback to the internal list of registered listeners. Once registered, RaiseEvent can then be used to raise the event to the registered listeners.

protected:
 bool RegisterEventListenerBase(System::String ^ eventName, System::String ^ controlName, EventHandler<Microsoft::Uii::HostedApplicationToolkit::DataDrivenAdapter::ControlChangedEventArgs ^> ^ listenerCallback);
protected bool RegisterEventListenerBase (string eventName, string controlName, EventHandler<Microsoft.Uii.HostedApplicationToolkit.DataDrivenAdapter.ControlChangedEventArgs> listenerCallback);
member this.RegisterEventListenerBase : string * string * EventHandler<Microsoft.Uii.HostedApplicationToolkit.DataDrivenAdapter.ControlChangedEventArgs> -> bool
Protected Function RegisterEventListenerBase (eventName As String, controlName As String, listenerCallback As EventHandler(Of ControlChangedEventArgs)) As Boolean

Parameters

eventName
String

Specifies the name of the event.

controlName
String

Specifies the name of the control. Event listener registration can be scoped at the data-driven adapter control level (specify blank or null to omit).

listenerCallback
EventHandler<ControlChangedEventArgs>

Specifies the callback associated with the listener.

Returns

Returns true when registration was successful (duplicate registration attempts return false).

Exceptions

EventName and ListenerCallback must not be null.

Applies to