| Microsoft DirectX 8.1 (Visual Basic) | 
Adds a data object as a child object.
object.AddDataObject( _
    Data As DirectXFileData)
If the method fails, an error is raised and Err.Number can be set to one of the following values.
| DXFILEERR_BADALLOC | 
| DXFILEERR_BADVALUE | 
For information on trapping errors, see the Microsoft® Visual Basic® Error Handling topic.
Use the DirectXFileSave.CreateDataObject method to create the DirectXFileData object before calling this method.