Microsoft DirectX 8.1 (Visual Basic)

DirectXFileEnum.GetDataObjectById

Retrieves a data object specified by its globally unique identifier (GUID).

object.GetDataObjectById( _
    ID As String, _
    RetVal As DirectXFileData)

Parts

object
Object expression that resolves to a DirectXFileEnum object.
ID
String value set to the object's GUID.
RetVal
DirectXFileData object, representing the returned file data object.

Error Codes

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

DXFILEERR_BADVALUE
DXFILEERR_NOTFOUND

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