Called for each DICOM file enumerated by the InsertFile method.
public virtual Leadtools.Dicom.DicomDirInsertFileCommand OnInsertFile(
string fileName,
Leadtools.Dicom.DicomDataSet dataSet,
Leadtools.Dicom.DicomDirInsertFileStatus status,
Leadtools.Dicom.DicomExceptionCode error
)
Public Overridable Function OnInsertFile( _
ByVal fileName As String, _
ByVal dataSet As Leadtools.Dicom.DicomDataSet, _
ByVal status As Leadtools.Dicom.DicomDirInsertFileStatus, _
ByVal error As Leadtools.Dicom.DicomExceptionCode _
) As Leadtools.Dicom.DicomDirInsertFileCommand
public:
virtual Leadtools.Dicom.DicomDirInsertFileCommand OnInsertFile(
String^ fileName,
Leadtools.Dicom.DicomDataSet^ dataSet,
Leadtools.Dicom.DicomDirInsertFileStatus status,
Leadtools.Dicom.DicomExceptionCode error
)
fileName
The name of the file being added to the DICOM Directory.
dataSet
A DicomDataSet object that specifies the Data Set contained by the DICOM file being processed. If the Data Set wasn't loaded successfully, this parameter is set to a null reference (Nothing in VB).
status
The status code.
error
The error code. This parameter is always set to DicomExceptionCode.Success unless the parameter status is set to DicomDirInsertFileStatus.Failure.
A value indicating how the enumeration of DICOM files should continue.
If the parameter passed to InsertFile is a null reference (Nothing in VB), then all the files in the destination folder, and optionally all the files in the subfolders of the destination folder, will be enumerated. For each file, the callback method OnInsertFile is called once or twice:
If this method returned DicomDirInsertFileCommand.Stop, the method InsertFile will stop adding new files. Therefore, to keep adding the DICOM files, this method should return DicomDirInsertFileCommand.Continue, or DicomDirInsertFileCommand.Skip if only the current file is to be skipped (which can be done during the first call).
The method InsertFile will stop adding new files and will throw an exception if an error occurred.
The implementation of the DicomDir class for this method simply returns DicomDirInsertFileCommand.Continue. In order to make use of this callback method, you should create a new class derived from the DicomDir class and override the method providing the desired implementation.
For an example, refer to Reset.
Products |
Support |
Feedback: OnInsertFile Method - Leadtools.Dicom |
Introduction |
Help Version 19.0.2017.6.16
|
Raster .NET | C API | C++ Class Library | JavaScript HTML5
Document .NET | C API | C++ Class Library | JavaScript HTML5
Medical .NET | C API | C++ Class Library | JavaScript HTML5
Medical Web Viewer .NET
Your email has been sent to support! Someone should be in touch! If your matter is urgent please come back into chat.
Chat Hours:
Monday - Friday, 8:30am to 6pm ET
Thank you for your feedback!
Please fill out the form again to start a new chat.
All agents are currently offline.
Chat Hours:
Monday - Friday
8:30AM - 6PM EST
To contact us please fill out this form and we will contact you via email.