HtmlElement::InvokeMember Method (String^, array<Object^>^)

 

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

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

public:
Object^ InvokeMember(
	String^ methodName,
	... array<Object^>^ parameter
)

Parameters

methodName
Type: System::String^

The name of the property or method to invoke.

parameter
Type: array<System::Object^>^

A list of parameters to pass.

Return Value

Type: System::Object^

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.

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 InvokeMember will be converted to Win32 VARIANT data types before they are passed to the named scripting function.

The following code example gets a TABLE called dataTable and uses the unexposed moveRow method to move a row from the end of the table to the beginning.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 2.0
Return to top
Show: