MsHtmlEventSink.Create Method (IHTMLElement2, String, String, RaiseEventHandler)
Creates and attaches an event sink to the provided htmlElement for the named eventName event.
Namespace: Microsoft.Uii.HostedApplicationToolkit.DataDrivenAdapter
Assembly: Microsoft.Uii.HostedApplicationToolkit.DataDrivenAdapter (in Microsoft.Uii.HostedApplicationToolkit.DataDrivenAdapter.dll)
Usage
'Usage
Dim htmlElement As IHTMLElement2
Dim eventName As String
Dim controlName As String
Dim raiseEventHandler As RaiseEventHandler
Dim returnValue As MsHtmlEventSink
returnValue = MsHtmlEventSink.Create(htmlElement, eventName, controlName, raiseEventHandler)
Syntax
'Declaration
<CLSCompliantAttribute(False)> _
Public Shared Function Create ( _
htmlElement As IHTMLElement2, _
eventName As String, _
controlName As String, _
raiseEventHandler As RaiseEventHandler _
) As MsHtmlEventSink
[CLSCompliantAttribute(false)]
public static MsHtmlEventSink Create (
IHTMLElement2 htmlElement,
string eventName,
string controlName,
RaiseEventHandler raiseEventHandler
)
[CLSCompliantAttribute(false)]
public:
static MsHtmlEventSink^ Create (
IHTMLElement2^ htmlElement,
String^ eventName,
String^ controlName,
RaiseEventHandler^ raiseEventHandler
)
/** @attribute CLSCompliantAttribute(false) */
public static MsHtmlEventSink Create (
IHTMLElement2 htmlElement,
String eventName,
String controlName,
RaiseEventHandler raiseEventHandler
)
CLSCompliantAttribute(false)
public static function Create (
htmlElement : IHTMLElement2,
eventName : String,
controlName : String,
raiseEventHandler : RaiseEventHandler
) : MsHtmlEventSink
Parameters
- htmlElement
Specifies the event source.
- eventName
Specifies the event name.
- controlName
Specifies the DDA control name associated with the event.
- raiseEventHandler
Specifies the callback that handles the sourced event.
Return Value
Event sink instance, already attached to the htmlElement.
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
MsHtmlEventSink Class
MsHtmlEventSink Members
Microsoft.Uii.HostedApplicationToolkit.DataDrivenAdapter Namespace
Unified Service Desk
Send comments about this topic to Microsoft.
© 2015 Microsoft. All rights reserved.