Leadtools.Dicom Requires Medical product license | Send comments on this topic. | Back to Introduction - All Topics | Help Version 15.10.31
InsertKey(DicomElement,DicomDirKeyType,Boolean) Method
See Also 
Leadtools.Dicom Namespace > DicomDataSet Class > InsertKey Method : InsertKey(DicomElement,DicomDirKeyType,Boolean) Method




parent
A key element in the Data Set. The new key element will be inserted as a child of this key element.
key
The type of key element to insert.
optional
true to insert all parts of the specified key element; false to insert only the mandatory parts of the specified key element.
Inserts a new key element in the Dicom Dir Data Set.

Syntax

Visual Basic (Declaration) 
Overloads Public Function InsertKey( _
   ByVal parent As DicomElement, _
   ByVal key As DicomDirKeyType, _
   ByVal optional As Boolean _
) As DicomElement
Visual Basic (Usage)Copy Code
Dim instance As DicomDataSet
Dim parent As DicomElement
Dim key As DicomDirKeyType
Dim optional As Boolean
Dim value As DicomElement
 
value = instance.InsertKey(parent, key, optional)
C# 
public DicomElement InsertKey( 
   DicomElement parent,
   DicomDirKeyType key,
   bool optional
)
Managed Extensions for C++ 
public: DicomElement* InsertKey( 
   DicomElement* parent,
   DicomDirKeyType key,
   bool optional
) 
C++/CLI 
public:
DicomElement^ InsertKey( 
   DicomElement^ parent,
   DicomDirKeyType key,
   bool optional
) 

Parameters

parent
A key element in the Data Set. The new key element will be inserted as a child of this key element.
key
The type of key element to insert.
optional
true to insert all parts of the specified key element; false to insert only the mandatory parts of the specified key element.

Return Value

The newly inserted item.

Example

For an example, refer to Reset.

Remarks

The newly inserted key element is inserted as a child of parent.

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