HtmlElement::InvokeMember Method (String^, array<Object^>^)
.NET Framework (current version)
Executes a function defined in the current HTML page by a scripting language.
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
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.
.NET Framework
Available since 2.0
Available since 2.0
Show: