MsHtmlEventSink.Create Method (IHTMLElement2, String, String, RaiseEventHandler)
Applies To: Dynamics 365 (online), Dynamics 365 (on-premises), Dynamics CRM 2013, Dynamics CRM 2015, Dynamics CRM 2016
Creates and attaches an event sink to the provided htmlElement for the named eventName event.
This API is not CLS-compliant.
Namespace: Microsoft.Uii.HostedApplicationToolkit.DataDrivenAdapter
Assembly: Microsoft.Uii.HostedApplicationToolkit.DataDrivenAdapter (in Microsoft.Uii.HostedApplicationToolkit.DataDrivenAdapter.dll)
Syntax
[CLSCompliantAttribute(false)]
public static MsHtmlEventSink Create(
IHTMLElement2 htmlElement,
string eventName,
string controlName,
RaiseEventHandler raiseEventHandler
)
<CLSCompliantAttribute(False)>
Public Shared Function Create (
htmlElement As IHTMLElement2,
eventName As String,
controlName As String,
raiseEventHandler As RaiseEventHandler
) As MsHtmlEventSink
Parameters
htmlElement
Type: mshtml.IHTMLElement2Specifies the event source.
eventName
Type: System.StringSpecifies the event name.
controlName
Type: System.StringSpecifies the DDA control name associated with the event.
raiseEventHandler
Type: Microsoft.Uii.HostedApplicationToolkit.DataDrivenAdapter.RaiseEventHandlerSpecifies the callback that handles the sourced event.
Return Value
Type: Microsoft.Uii.HostedApplicationToolkit.DataDrivenAdapter.MsHtmlEventSink
Event sink instance, already attached to the htmlElement.
See Also
Create Overload
MsHtmlEventSink Class
Microsoft.Uii.HostedApplicationToolkit.DataDrivenAdapter Namespace
Return to top
Unified Service Desk 2.0
© 2017 Microsoft. All rights reserved. Copyright