Leadtools.Dicom Namespace > DicomDir Class : InsertDataSet Method |
public void InsertDataSet( DicomDataSet dataSet, string fileName )
'Declaration Public Sub InsertDataSet( _ ByVal dataSet As DicomDataSet, _ ByVal fileName As String _ )
'Usage Dim instance As DicomDir Dim dataSet As DicomDataSet Dim fileName As String instance.InsertDataSet(dataSet, fileName)
public void InsertDataSet( DicomDataSet dataSet, string fileName )
ObjectiveC Syntax
public: void InsertDataSet( DicomDataSet^ dataSet, String^ fileName )
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).
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2