Microsoft DirectX 8.1 (C++)

Objects.AddAt

This topic applies to Windows XP Home Edition and Windows XP Professional only.

The AddAt method adds an object to an ordered collection at the specified index.

Syntax

objObjects.AddAt(
  punk As Unknown,
  index As Long)

Parameters

punk

[in]  Specifies the object to add.

index

[in]  Specifies the index.

Error Codes

If the method fails, an error is raised and Err.Number is set to a value other than zero.

Return Values

This method does not return a value.

Remarks

This method can be used only on collections retrieved by using Objects.ItemsRelatedToBy.

See Also