DataDrivenAdapterBase.UnregisterEventListenerBase Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.