Click or drag to resize

NexusExtensionsTryGetAttributeValueAsString Method

Try to get an attribute value as string. If this fails, null is returned.

Namespace: Altaxo.Serialization.HDF5.Nexus
Assembly: AltaxoDom (in AltaxoDom.dll) Version: 4.8.3261.0 (4.8.3261.0)
Syntax
C#
public static string? TryGetAttributeValueAsString(
	this IH5Object obj,
	string name
)

Parameters

obj  IH5Object
The HDF5 object that has the attribute.
name  String
The attribute's name.

Return Value

String
Either the attributes value, if it is a string, or null, if the attribute don't exist. Note that if the attribute exists but its value is not a string, an exception is thrown.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IH5Object. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also