Skip Navigation Links.

H5A..::..create Method (H5ObjectWithAttributes, , H5DataTypeId, H5DataSpaceId, H5PropertyListId)

Creates an attribute attached to a specified object. http://www.hdfgroup.org/HDF5/doc/RM/RM_H5A.html#Annot-Create

Namespace:  HDF5DotNet
Assembly:  HDF5DotNet (in HDF5DotNet.dll)

Syntax

Visual Basic
Public Shared Function create ( _
	objectId As H5ObjectWithAttributes, _
	attributeName As String, _
	typeId As H5DataTypeId, _
	spaceId As H5DataSpaceId, _
	creationPropertyListId As H5PropertyListId _
) As H5AttributeId
C#
public static H5AttributeId create(
	H5ObjectWithAttributes objectId,
	string attributeName,
	H5DataTypeId typeId,
	H5DataSpaceId spaceId,
	H5PropertyListId creationPropertyListId
)
Visual C++
public:
static H5AttributeId^ create(
	H5ObjectWithAttributes^ objectId, 
	String^ attributeName, 
	H5DataTypeId^ typeId, 
	H5DataSpaceId^ spaceId, 
	H5PropertyListId^ creationPropertyListId
)
JavaScript
HDF5DotNet.H5A.create = function(objectId, attributeName, typeId, spaceId, creationPropertyListId);

Parameters

objectId
Type: HDF5DotNet..::..H5ObjectWithAttributes
IN: Location or object identifier; may be dataset or group
attributeName
Type: String
IN: Attribute name
typeId
Type: HDF5DotNet..::..H5DataTypeId
IN: Attribute datatype identifier
spaceId
Type: HDF5DotNet..::..H5DataSpaceId
IN: Attribute dataspace identifier
creationPropertyListId
Type: HDF5DotNet..::..H5PropertyListId
IN: Attribute creation property list identifier

Return Value

H5AttributeId for the created attribute.

Exceptions

ExceptionCondition
HDF5DotNet..::..H5AcreateException throws H5AcreateException on failure.

See Also