Microsoft DirectX 8.1 (Visual Basic)

DirectXFileData.AddDataReference

Creates and adds a data reference object as a child object.

object.AddDataReference( _
    Name As String, _
    Guid As String)

Parts

object
Object expression that resolves to a DirectXFileData object.
Name
String value containing the name of the referenced data object. This parameter can be an empty string if Guid provides a reference to the globally unique identifier (GUID).
Guid
String value containing the GUID that represents the data. This parameter can be an empty string if Name provides a reference to the name.

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

For this method to succeed, either the Name or Guid parameter must be a non-empty string.