Click or drag to resize

WITecTreeNodeGetDataT Method

Gets a data value by name and casts it to the requested type T.

Namespace: Altaxo.Serialization.WITec
Assembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3448.0 (4.8.3448.0)
Syntax
C#
public T GetData<T>(
	string name
)

Parameters

name  String
The key/name of the data value to retrieve.

Type Parameters

T
The expected type of the data value.

Return Value

T
The value associated with name cast to T.
Exceptions
ExceptionCondition
InvalidDataExceptionThrown when the data exists but is not of type T.
KeyNotFoundExceptionThrown when a value with the specified name is not present.
See Also