DicomObjects.NET.8.48 Documentation
DicomObjects Namespace / DicomImage Class / Remove Method / Remove(Keyword) Method
The attribute to be removed, specified as a Keyword
Example

In This Topic
    Remove(Keyword) Method
    In This Topic
    Removes an attribute from the underlying DataSet
    Syntax
    'Declaration
     
    
    Public Overloads Sub Remove( _
       ByVal keyword As Keyword _
    ) 
    public void Remove( 
       Keyword keyword
    )

    Parameters

    keyword
    The attribute to be removed, specified as a Keyword
    Remarks

    If the appropriate data element exists in the underlying DicomDataSet, it is removed.

    No error is generated if the requested item is not present in the DataSet.

    Example
    DicomImage image = new DicomImage();
    image.Remove(Keyword.PatientName);
    var patientName = image.DataSet[Keyword.PatientName].Value.ToString(); // null
    Requirements

    Target Platforms: .NET CLR 4.8 or higher

    See Also