System.Windows.Forms.HtmlElement.InvokeMember Method

Executes a function defined in the current HTML page by a scripting language.

Syntax

public object InvokeMember (string methodName, params object[] parameter)

Parameters

methodName
The name of the property or method to invoke.
parameter
A list of parameters to pass.

Returns

The element returned by the function, represented as an object. If this object is another HTML element, and you have a reference to the unmanaged MSHTML library added to your project, you can cast it to its appropriate unmanaged interface.

Remarks

This method can be used to call methods from the Document Object Model (DOM) that do not have equivalents in managed code. All arguments supplied to HtmlElement.InvokeMember(string, Object[]) will be converted to Win32 VARIANT data types before they are passed to the named scripting function.

Requirements

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Assembly Versions: 2.0.0.0