←Select platform

GetValue<T>(DicomElement,Boolean,Int64,T) Method

Summary

Returns the value of a DICOM element

Syntax

C#
VB
C++
public T GetValue<T>(  
   Leadtools.Dicom.DicomElement element, 
   bool tree, 
   long tag, 
   T defaultValue 
) 
Public Overloads Function GetValue(Of T)( _ 
   ByVal element As Leadtools.Dicom.DicomElement, _ 
   ByVal tree As Boolean, _ 
   ByVal tag As Long, _ 
   ByVal defaultValue As T _ 
) As T 
public: 
T^ GetValuegeneric<typename T> 
(  
   Leadtools.Dicom.DicomElement^ element, 
   bool tree, 
   int64 tag, 
   T^ defaultValue 
)  

Parameters

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.

Type Parameters

T
specifies the type of the value to return

Return Value

a value of type T that is the value of the DICOM element

Remarks

For information on this method, see GetValue.

Example

For an example, refer to DicomDataSet.GetValue{T}(DicomElement, T)

Requirements

Target Platforms

Products | Support | Contact Us | Copyright Notices
© 1991-2017 LEAD Technologies, Inc. All Rights Reserved.
Leadtools.Dicom Assembly
Click or drag to resize