Share via


IComponents::Add method (tuner.h)

[The feature associated with this page, Microsoft TV Technologies, is a legacy feature. Microsoft strongly recommends that new code does not use this feature.]

The Add method adds a Component object to the collection.

Syntax

HRESULT Add(
  [in]  IComponent *Component,
  [out] VARIANT    *NewIndex
);

Parameters

[in] Component

Pointer to the Component object to be added.

[out] NewIndex

Pointer to a VARIANT that will receive the index of the Component object after it has been added.

Return value

Returns S_OK if successful. If the method fails, error information can be retrieved using the standard COM IErrorInfo interface.

Requirements

Requirement Value
Minimum supported client Windows�XP [desktop apps only]
Minimum supported server None supported
Target Platform Windows
Header tuner.h

See also

IComponents Interface