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




dataSet
A DicomDataSet object that holds the Data Set to be added to the DICOM Directory.
fileName
The name of the DICOM file referenced by the passed DicomDataSet object.
Adds a DICOM Data Set to the DICOM Directory.

Syntax

Visual Basic (Declaration) 
Public Sub InsertDataSet( _
   ByVal dataSet As DicomDataSet, _
   ByVal fileName As String _
) 
Visual Basic (Usage)Copy Code
Dim instance As DicomDir
Dim dataSet As DicomDataSet
Dim fileName As String
 
instance.InsertDataSet(dataSet, fileName)
C# 
public void InsertDataSet( 
   DicomDataSet dataSet,
   string fileName
)
Managed Extensions for C++ 
public: void InsertDataSet( 
   DicomDataSet* dataSet,
   string* fileName
) 
C++/CLI 
public:
void InsertDataSet( 
   DicomDataSet^ dataSet,
   String^ fileName
) 

Parameters

dataSet
A DicomDataSet object that holds the Data Set to be added to the DICOM Directory.
fileName
The name of the DICOM file referenced by the passed DicomDataSet object.

Example

For an example, refer to Reset.

Remarks

If the name of a DICOM file is to be specified, then before using this method, a destination folder must have been specified, either at the construction time or by the method Reset. Otherwise, the method will fail.

The DICOM filename must refer to an existing file that resides in the destination folder or in a subfolder of the destination folder. Otherwise, the method will fail and the Data Set will not be added to the DICOM Directory. Please notice that the filename passed to the method must specify the absolute path of the file, not the relative one.

If fileName is set to a null reference (Nothing in Visual Basic), a Data Set can still be added, even if no destination folder is specified. (That is, if fileName is set to a null reference and the destination folder has not been set, a Data Set can still be added.) In this case, no DICOM file will be referenced for this Data Set (i.e., the corresponding Referenced File ID (0004,1500) will have an empty value).

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