Share via


WebDataDrivenAdapter.UnregisterEventListener Method

Definition

Facilitates explicit WebDDA event listener unregistration. Called for every registered event on Dispose().

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

True if unregistration was successful (duplicate unregistration attempts return false).

Exceptions

EventName and ListenerCallback must not be null.

Applies to