ITCollection2::Add method (tapi3if.h)
The Add method inserts a new item into the collection at the specified index.
Syntax
HRESULT Add(
[in] long Index,
[in] VARIANT *pVariant
);
Parameters
[in] Index
Specifies the location in the collection where the item should be added.
[in] pVariant
Pointer to a VARIANT containing the item to add.
Return value
This method can return one of these values.
Return code | Description |
---|---|
|
Method succeeded. |
|
The pVariant parameter is not a valid pointer. |
|
The Index parameter does not specify a valid index. |
|
There is not enough memory to reallocate the collection. |
Requirements
Requirement | Value |
---|---|
Target Platform | Windows |
Header | tapi3if.h |
Library | Uuid.lib |
DLL | Tapi3.dll |