DicomObjects.NET.8.48 Documentation
DicomObjects Namespace / DicomDataSet Class / Clear Method
Example

In This Topic
    Clear Method (DicomDataSet)
    In This Topic
    Clear the DicomDataSet data
    Syntax
    'Declaration
     
    
    Public Sub Clear() 
    public void Clear()
    Example
    DicomDataSet ds = new DicomDataSet("Dataset.dcm");
    var pn = ds[Keyword.PatientName].Value.ToString(); // "John Doe"
    ds.Clear(); // clears all dicom attriutes
    pn = ds[Keyword.PatientName].Value.ToString(); // null
    Requirements

    Target Platforms: .NET CLR 4.8 or higher

    See Also