Routines (alphabetical) > Routines: H > HDF5 Routines > H5T_REFERENCE_CREATE

# H5T_REFERENCE_CREATE

The H5T_REFERENCE_CREATE function creates a reference datatype object.

## Example

See the example under H5F_CREATE.

## Syntax

Result = H5T_REFERENCE_CREATE([/REGION])

## Return Value

The Result is either an integer (if an object reference is created) or a structure (if a dataspace region reference is created) giving the identifier of the new datatype. The datatype identifier returned from this function should be released with H5T_CLOSE.

## Arguments

None

## Keywords

### REGION

If set a dataspace region reference will be created. The default is to create an object reference.

## Version History

6.2 | Introduced

## See Also

H5T_ARRAY_CREATE, H5T_IDL_CREATE, H5T_CLOSE