DicomObjects.NET.8.48 Documentation
DicomObjects Namespace / DicomImageCollection Class / Add Method / Add(IEnumerable<DicomDataSet>) Method

The DicomDataSetCollection to be added to the collection

Example

In This Topic
    Add(IEnumerable<DicomDataSet>) Method
    In This Topic
    Syntax
    'Declaration
     
    
    Public Overloads Sub Add( _
       ByVal value As System.Collections.Generic.IEnumerable(Of DicomDataSet) _
    ) 
    public void Add( 
       System.Collections.Generic.IEnumerable<DicomDataSet> value
    )

    Parameters

    value

    The DicomDataSetCollection to be added to the collection

    Remarks
    Similar to adding a DicomImage to DicomImageCollection, this method adds a collection of DicomDataSets to the end of a DicomImageCollection.
    Example
    DicomImageCollection imageCollection = new DicomImageCollection();
                        
    DicomDataSet dataSet1 = new DicomDataSet("your_dicom_dataset1.dcm");
    DicomDataSet dataSet2 = new DicomDataSet("your_dicom_dataset2.dcm");
    DicomDataSet dataSet3 = new DicomDataSet("your_dicom_dataset3.dcm");
                        
    DicomDataSetCollection dataSetCollection = new DicomDataSetCollection();
    dataSetCollection.Add(dataSet1);
    dataSetCollection.Add(dataSet2);
    dataSetCollection.Add(dataSet3);
                        
    imageCollection.Add(dataSetCollection);
    Requirements

    Target Platforms: .NET CLR 4.8 or higher

    See Also