UIADataDrivenAdapter.RegisterEventListener Method
Registers for the event listener.
Namespace: Microsoft.Uii.HostedApplicationToolkit.DataDrivenAdapter
Assembly: Microsoft.Uii.HostedApplicationToolkit.DataDrivenAdapter (in Microsoft.Uii.HostedApplicationToolkit.DataDrivenAdapter.dll)
Usage
'Usage
Dim instance As UIADataDrivenAdapter
Dim eventName As String
Dim controlName As String
Dim listenerCallback As EventHandler(Of ControlChangedEventArgs)
Dim data As String
Dim returnValue As Boolean
returnValue = instance.RegisterEventListener(eventName, controlName, listenerCallback, data)
Syntax
'Declaration
Public Overrides Function RegisterEventListener ( _
eventName As String, _
controlName As String, _
listenerCallback As EventHandler(Of ControlChangedEventArgs), _
data As String _
) As Boolean
public override bool RegisterEventListener (
string eventName,
string controlName,
EventHandler<ControlChangedEventArgs> listenerCallback,
string data
)
public:
virtual bool RegisterEventListener (
String^ eventName,
String^ controlName,
EventHandler<ControlChangedEventArgs^>^ listenerCallback,
String^ data
) override
public boolean RegisterEventListener (
String eventName,
String controlName,
EventHandler<ControlChangedEventArgs> listenerCallback,
String data
)
public override function RegisterEventListener (
eventName : String,
controlName : String,
listenerCallback : EventHandler<ControlChangedEventArgs>,
data : String
) : boolean
Parameters
- eventName
Specifies the name of the event.
- controlName
Specifies name of the control.
- listenerCallback
Specifies the call back listener.
- data
Specifies the data.
Return Value
Type: Boolean
True if the registration was successful, otherwise false.
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Platforms
See Also
Reference
UIADataDrivenAdapter Class
UIADataDrivenAdapter Members
Microsoft.Uii.HostedApplicationToolkit.DataDrivenAdapter Namespace
Unified Service Desk
Send comments about this topic to Microsoft.
© 2015 Microsoft. All rights reserved.