MsHtmlEventSink.Create Method (IHTMLElement2, String)

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 returnValue As MsHtmlEventSink

returnValue = MsHtmlEventSink.Create(htmlElement, eventName)

Syntax

'Declaration
<CLSCompliantAttribute(False)> _
Public Shared Function Create ( _
    htmlElement As IHTMLElement2, _
    eventName As String _
) As MsHtmlEventSink
[CLSCompliantAttribute(false)] 
public static MsHtmlEventSink Create (
    IHTMLElement2 htmlElement,
    string eventName
)
[CLSCompliantAttribute(false)] 
public:
static MsHtmlEventSink^ Create (
    IHTMLElement2^ htmlElement, 
    String^ eventName
)
/** @attribute CLSCompliantAttribute(false) */ 
public static MsHtmlEventSink Create (
    IHTMLElement2 htmlElement, 
    String eventName
)
CLSCompliantAttribute(false) 
public static function Create (
    htmlElement : IHTMLElement2, 
    eventName : String
) : MsHtmlEventSink

Parameters

  • htmlElement
    Specifies the event source.
  • eventName
    Specifies the event name.

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.