IJSMethods::Add Method
Description
The Add method creates a new method within the collection.
Syntax
[id(0x000000CD)]
HRESULT _stdcall Add([in] BSTR Name, [out, retval] IJSMethod** OutRetVal);
Parameters
| Parameter | Type | Description |
|---|---|---|
Name |
BSTR (input) | Method name. |
OutRetVal |
IJSMethod** (output) | Returns the newly created method. |
Return Value
The method returns a reference to the newly instantiated method object through the OutRetVal parameter.