DicomObjects.NET.8.48 Documentation
DicomObjects Namespace / DicomImage Class / Add Method / Add(IEnumerable<DicomAttribute>) Method
A list of DicomAttribute to add
Example

In This Topic
    Add(IEnumerable<DicomAttribute>) Method
    In This Topic
    Add a collection of DicomAttributes to the DataSet the underlying DicomDataSet
    Syntax
    'Declaration
     
    
    Public Overloads Sub Add( _
       ByVal attributes As System.Collections.Generic.IEnumerable(Of DicomAttribute) _
    ) 
    public void Add( 
       System.Collections.Generic.IEnumerable<DicomAttribute> attributes
    )

    Parameters

    attributes
    A list of DicomAttribute to add
    Example
    DicomImage image = new DicomImage();
    DicomDataSet ds = new DicomDataSet("your_dicom_dataset.dcm");
    List<DicomAttribute> attributesToAdd = new List<DicomAttribute>();
     
    foreach (DicomAttribute attr in ds)
    {
        attributesToAdd.Add(attr);
    }
    image.Add(attributesToAdd);
    Requirements

    Target Platforms: .NET CLR 4.8 or higher

    See Also