Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Facilitates explicit WinDDA event listener registration.
Namespace: Microsoft.Uii.HostedApplicationToolkit.DataDrivenAdapter
Assembly: Microsoft.Uii.HostedApplicationToolkit.DataDrivenAdapter (in Microsoft.Uii.HostedApplicationToolkit.DataDrivenAdapter.dll)
Usage
'Usage
Dim instance As WinDataDrivenAdapter
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 the name of the control. Event listener registration can be scoped at the data driven adapter control level (specify blank or null to omit).
- listenerCallback
Specifies the callback associated with the listener
- data
Specifies the data associated with the callback.
Return Value
true if the registration was successful , otherwise false. Duplicate registration attempts should return false.
Exceptions
| Exception type | Condition |
|---|---|
| ArgumentNullException | eventName and listenerCallback must not be null. |
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
WinDataDrivenAdapter Class
WinDataDrivenAdapter Members
Microsoft.Uii.HostedApplicationToolkit.DataDrivenAdapter Namespace
Unified Service Desk
Send comments about this topic to Microsoft.
© 2015 Microsoft. All rights reserved.