Del via


DataDrivenAdapterBase.RegisterEventListenerBase Method (String, String, EventHandler<ControlChangedEventArgs>)

 

Applies To: Dynamics 365 (online), Dynamics 365 (on-premises), Dynamics CRM 2013, Dynamics CRM 2015, Dynamics CRM 2016

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.

Namespace:   Microsoft.Uii.HostedApplicationToolkit.DataDrivenAdapter
Assembly:  Microsoft.Uii.HostedApplicationToolkit.DataDrivenAdapter (in Microsoft.Uii.HostedApplicationToolkit.DataDrivenAdapter.dll)

Syntax

protected bool RegisterEventListenerBase(
    string eventName,
    string controlName,
    EventHandler<ControlChangedEventArgs> listenerCallback
)
Protected Function RegisterEventListenerBase (
    eventName As String,
    controlName As String,
    listenerCallback As EventHandler(Of ControlChangedEventArgs)
) As Boolean

Parameters

  • controlName
    Type: System.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).

Return Value

Type: System.Boolean

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

Exceptions

Exception Condition
ArgumentNullException

EventName and ListenerCallback must not be null.

See Also

DataDrivenAdapterBase Class
Microsoft.Uii.HostedApplicationToolkit.DataDrivenAdapter Namespace

Return to top

Unified Service Desk 2.0

© 2017 Microsoft. All rights reserved. Copyright