|Manuals

IJSEvent::ArgumentAsBool Method

Description

This method assigns a boolean value to an argument that can be identified either by its position or by name.

Syntax

[id(0x000000CF)]
HRESULT _stdcall ArgumentAsBool(
  [in] VARIANT Index,
  [in] VARIANT_BOOL Value,
  [out, retval] IJSEvent** OutRetVal
);

Parameters

Parameter Type Description
Index VARIANT OleVariant. Number or string value identifying the argument by index or name.
Value VARIANT_BOOL A boolean data value to be set
OutRetVal IJSEvent** Returns the parent IJSEvent

Return Value

The method returns a reference to the parent IJSEvent object, enabling method chaining.