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

# H5I_GET_TYPE

The H5I_GET_TYPE function returns the object’s type.

## Syntax

Result = H5I_GET_TYPE(Obj_id)

## Return Value

Returns a string representing the object type. Possible return values include:

- ‘FILE‘
- ‘GROUP‘
- ‘DATATYPE‘
- ‘DATASPACE‘
- ‘DATASET‘
- ‘ATTR‘
- ‘BADID‘

## Arguments

### Obj_id

An integer representing the object’s identifier for which to return the type.

## Keywords

None

## Version History

5.6 | Introduced