Microsoft DirectX 8.1 (C++) |
This topic applies to Windows XP Home Edition and Windows XP Professional only.
The AddAt method adds a Channel object to this Channels collection at the specified index.
Syntax
HRESULT AddAt(
IChannel* pchan,
long index
);
Parameters
pchan
[in] Specifies the IChannel interface of the Channel object to be added to this Channels collection.
index
[in] Specifies the index in the collection where the object is to be added.
Return Values
The method returns an HRESULT. Possible values include, but are not limited to, those in the following table.
Return code | Description |
S_OK | The method succeeded. |
E_POINTER | Data cannot be read from or written to a supplied address. |
Remarks
This method is valid only for the collection of objects returned by IChannelLineup::get_Channels, which is an ordered collection.
See Also