Microsoft DirectX 8.1 (Visual Basic)

DirectXFileData.GetData

Retrieves the data for one of the object's members or the data for all members.

object.GetData( _
    Name As String, _
    Data As Any)

Parts

object
Object expression that resolves to a DirectXFileData object.
Name
String value containing the name of the member for which to retrieve data. Specify an empty string to retrieve all required members' data.
Data
Buffer to receive the data associated with Name. If Name is an empty string, Data is set to a buffer containing all required members' data in a contiguous block of memory.

Error Codes

If the method fails, an error is raised and Err.Number can be set to one of the following values.

DXFILEERR_BADARRAYSIZE
DXFILEERR_BADDATAREFERENCE
DXFILEERR_BADVALUE

For information on trapping errors, see the Microsoft® Visual Basic® Error Handling topic.

Remarks

This method retrieves the data for required members of a data object but no data for optional (child) members. Use DirectXFileData.GetNextObject to retrieve child objects.

See Also

DirectXFileData.GetNextObject