Partager via


DataDrivenAdapterBase.UnregisterEventListenerBase Method

Definition

Removes the specified listenerCallback from the internal list of registered listeners. Once unregistered, RaiseEvent no longer can be used to raise the event.

protected:
 bool UnregisterEventListenerBase(System::String ^ eventName, System::String ^ controlName, EventHandler<Microsoft::Uii::HostedApplicationToolkit::DataDrivenAdapter::ControlChangedEventArgs ^> ^ listenerCallback);
protected bool UnregisterEventListenerBase (string eventName, string controlName, EventHandler<Microsoft.Uii.HostedApplicationToolkit.DataDrivenAdapter.ControlChangedEventArgs> listenerCallback);
member this.UnregisterEventListenerBase : string * string * EventHandler<Microsoft.Uii.HostedApplicationToolkit.DataDrivenAdapter.ControlChangedEventArgs> -> bool
Protected Function UnregisterEventListenerBase (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 control name. 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 unregistration was successful (duplicate unregistration attempts return false).

Exceptions

EventName and ListenerCallback must not be null.

Applies to