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

 

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

Facilitates explicit data-driven adapter event listener registration.

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

Syntax

public abstract bool RegisterEventListener(
    string eventName,
    string controlName,
    EventHandler<ControlChangedEventArgs> listenerCallback,
    string Data
)
Public MustOverride Function RegisterEventListener (
    eventName As String,
    controlName As String,
    listenerCallback As EventHandler(Of ControlChangedEventArgs),
    Data As String
) As Boolean

Parameters

  • controlName
    Type: System.String

    Specifies the name of the control (specify blank or null to omit).

  • Data
    Type: System.String

    Specifies additional data that is to be passed for customizing the operation.

Return Value

Type: System.Boolean

Returns true if the registration is successful (duplicate registration attempts should return false).

Exceptions

Exception Condition
ArgumentNullException

eventName and listenerCallback must not be null.

See Also

RegisterEventListener Overload
DataDrivenAdapterBase Class
Microsoft.Uii.HostedApplicationToolkit.DataDrivenAdapter Namespace

Return to top

Unified Service Desk 2.0

© 2016 Microsoft. All rights reserved. Copyright