Leadtools.Dicom Requires Medical product license | Send comments on this topic. | Back to Introduction - All Topics | Help Version 15.10.31
FreeElementValue Method
See Also 
Leadtools.Dicom Namespace > DicomDataSet Class : FreeElementValue Method




element
An item in the Data Set.
Frees the memory for a value.

Syntax

Visual Basic (Declaration) 
Public Sub FreeElementValue( _
   ByVal element As DicomElement _
) 
Visual Basic (Usage)Copy Code
Dim instance As DicomDataSet
Dim element As DicomElement
 
instance.FreeElementValue(element)
C# 
public void FreeElementValue( 
   DicomElement element
)
Managed Extensions for C++ 
public: void FreeElementValue( 
   DicomElement* element
) 
C++/CLI 
public:
void FreeElementValue( 
   DicomElement^ element
) 

Parameters

element
An item in the Data Set.

Example

For an example, refer to SetIntValue.

Remarks

Calling this method following a call to one of the DicomDataSet.GetxxxValue or DicomDataSet.GetxxxValuePtr methods, or the GetElementValueCount method will free the memory allocated for the retrieved value. This memory will be freed anyway when the Data Set is freed. Using this method allows you to minimize the memory use in your application.

Requirements

Target Platforms: Microsoft .NET Framework 2.0, Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also

Leadtools.Dicom requires a Medical toolkit license and unlock key. For more information, refer to: Raster Pro/Document/Medical Features