|Manuals

IJSMethod::AddArgument Method

Description

This method enables you to append a parameter to a method’s parameters collection.

Syntax

[id(0x000000CC)]
HRESULT _stdcall AddArgument(
  [in] BSTR Name,
  [in] enum IJSDataType DataType,
  [out, retval] IJSMethod** OutRetVal
);

Parameters

Parameter Type Description
Name BSTR Argument name
DataType enum IJSDataType Data type
OutRetVal IJSMethod** Returns the newly created argument

Return Value

Returns the parent IJSMethod interface pointer, enabling method chaining.

See Also

  • Works with IJSDataType enumeration
  • Returns an IJSMethod interface pointer