C#
C++
public T GetValue<T>(
DicomElement element,
bool tree,
long tag,
T defaultValue
)
public:
T^ GetValuegeneric<typename T>
(
DicomElement^ element,
bool tree,
int64 tag,
T^ defaultValue
)
element
an item in the data set
tree
true to evaluate the Data Set as a tree; false to evaluate the Data Set as a list.
tag
tag of the item to find.
defaultValue
a value of type T that is returned if the actual value cannot be retrieved.
T
specifies the type of the value to return
a value of type T that is the value of the DICOM element
For information on this method, see GetValue.
For an example, refer to DicomDataSet.GetValue{T}(DicomElement, T)