Skip Navigation Links.

H5A..::..createByName Method (H5ObjectWithAttributes, , , H5DataTypeId, H5DataSpaceId)

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

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

Syntax

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

Parameters

object
Type: HDF5DotNet..::..H5ObjectWithAttributes
IN: Location or object identifier; may be dataset or group
objectName
Type: String
IN: Name, relative to loc_id, of object that attribute is to be attached to
attributeName
Type: String
IN: Attribute name
typeId
Type: HDF5DotNet..::..H5DataTypeId
IN: Attribute datatype identifier
spaceId
Type: HDF5DotNet..::..H5DataSpaceId
IN: Attribute dataspace identifier

Return Value

H5AttributeId associated with the created attribute.

Exceptions

ExceptionCondition
HDF5DotNet..::..H5AcreateByNameException throws H5AcreateByNameException on failure.

See Also