Share via


WebDataDrivenAdapter.RegisterEventListener Method

Definition

Facilitates explicit WebDDA event listener registration.

public:
 override bool RegisterEventListener(System::String ^ eventName, System::String ^ controlName, EventHandler<Microsoft::Uii::HostedApplicationToolkit::DataDrivenAdapter::ControlChangedEventArgs ^> ^ listenerCallback, System::String ^ data);
public override bool RegisterEventListener (string eventName, string controlName, EventHandler<Microsoft.Uii.HostedApplicationToolkit.DataDrivenAdapter.ControlChangedEventArgs> listenerCallback, string data);
override this.RegisterEventListener : string * string * EventHandler<Microsoft.Uii.HostedApplicationToolkit.DataDrivenAdapter.ControlChangedEventArgs> * string -> bool
Public Overrides Function RegisterEventListener (eventName As String, controlName As String, listenerCallback As EventHandler(Of ControlChangedEventArgs), data As String) 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.

data
String

Contains the data associated with the callback.

Returns

True if the registration was successful, otherwise, false (duplicate registration attempts should return false).

Exceptions

EventName and ListenerCallback must not be null.

Applies to