DicomObjects.NET.8.48 Documentation
DicomObjects Namespace / DicomDataSet 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 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 DicomDataSet, it is removed.

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

    Example
    DicomDataSet ds = new DicomDataSet("Dataset.dcm");
    Keyword patientName = Keyword.PatientName;         
    ds.Remove(patientName);
    var pn = ds[Keyword.PatientName].Value.ToString(); // null
    Requirements

    Target Platforms: .NET CLR 4.8 or higher

    See Also