Microsoft DirectX 8.1 (Visual Basic)

DirectXFileData.AddDataObject

Adds a data object as a child object.

object.AddDataObject( _
    Data As DirectXFileData)

Parts

object
Object expression that resolves to a DirectXFileData object.
Data
DirectXFileData object, representing the file data object to add as a child object.

Error Codes

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.

Remarks

Use the DirectXFileSave.CreateDataObject method to create the DirectXFileData object before calling this method.

See Also

DirectXFileSave.CreateDataObject