Partager via


MsHtmlEventSink.Create Method

Definition

Overloads

Create(IHTMLElement2, String)

Creates and attaches an event sink to the provided htmlElement for the named eventName event.

Create(IHTMLElement2, String, String, RaiseEventHandler)

Creates and attaches an event sink to the provided htmlElement for the named eventName event.

Create(IHTMLElement2, String)

Important

This API is not CLS-compliant.

Creates and attaches an event sink to the provided htmlElement for the named eventName event.

public:
 static Microsoft::Uii::HostedApplicationToolkit::DataDrivenAdapter::MsHtmlEventSink ^ Create(mshtml::IHTMLElement2 ^ htmlElement, System::String ^ eventName);
[System.CLSCompliant(false)]
public static Microsoft.Uii.HostedApplicationToolkit.DataDrivenAdapter.MsHtmlEventSink Create (mshtml.IHTMLElement2 htmlElement, string eventName);
[<System.CLSCompliant(false)>]
static member Create : mshtml.IHTMLElement2 * string -> Microsoft.Uii.HostedApplicationToolkit.DataDrivenAdapter.MsHtmlEventSink
Public Shared Function Create (htmlElement As IHTMLElement2, eventName As String) As MsHtmlEventSink

Parameters

htmlElement
mshtml.IHTMLElement2

Specifies the event source.

eventName
String

Specifies the event name.

Returns

Event sink instance, already attached to the htmlElement

Attributes

Applies to

Create(IHTMLElement2, String, String, RaiseEventHandler)

Important

This API is not CLS-compliant.

Creates and attaches an event sink to the provided htmlElement for the named eventName event.

public:
 static Microsoft::Uii::HostedApplicationToolkit::DataDrivenAdapter::MsHtmlEventSink ^ Create(mshtml::IHTMLElement2 ^ htmlElement, System::String ^ eventName, System::String ^ controlName, Microsoft::Uii::HostedApplicationToolkit::DataDrivenAdapter::RaiseEventHandler ^ raiseEventHandler);
[System.CLSCompliant(false)]
public static Microsoft.Uii.HostedApplicationToolkit.DataDrivenAdapter.MsHtmlEventSink Create (mshtml.IHTMLElement2 htmlElement, string eventName, string controlName, Microsoft.Uii.HostedApplicationToolkit.DataDrivenAdapter.RaiseEventHandler raiseEventHandler);
[<System.CLSCompliant(false)>]
static member Create : mshtml.IHTMLElement2 * string * string * Microsoft.Uii.HostedApplicationToolkit.DataDrivenAdapter.RaiseEventHandler -> Microsoft.Uii.HostedApplicationToolkit.DataDrivenAdapter.MsHtmlEventSink
Public Shared Function Create (htmlElement As IHTMLElement2, eventName As String, controlName As String, raiseEventHandler As RaiseEventHandler) As MsHtmlEventSink

Parameters

htmlElement
mshtml.IHTMLElement2

Specifies the event source.

eventName
String

Specifies the event name.

controlName
String

Specifies the DDA control name associated with the event.

raiseEventHandler
RaiseEventHandler

Specifies the callback that handles the sourced event.

Returns

Event sink instance, already attached to the htmlElement.

Attributes

Applies to