←Select platform

InsertKey(DicomElement,string,bool) Method

Summary
Inserts a new key element in the Dicom Dir Data Set.
Syntax
C#
Objective-C
C++
Java
public DicomElement InsertKey( 
   DicomElement parent, 
   string key, 
   bool optional 
) 
- (nullable LTDicomElement *)insertKey:(LTDicomElement *)parent stringKey:(NSString *)key optional:(BOOL)optional; 
public DicomElement insertKey(DicomElement parent, String key, boolean optional) 
public: 
DicomElement^ InsertKey(  
   DicomElement^ parent, 
   String^ 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.

Remarks

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

Example

For an example, refer to Reset.

Requirements

Target Platforms

Help Version 22.0.2022.4.4
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2022 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Dicom Assembly