'DeclarationPublic Overloads Sub Remove( _ ByVal selector As System.Predicate(Of DicomAttribute) _ )
public void Remove( System.Predicate<DicomAttribute> selector )
Parameters
- selector
- The predicate to match the attributes to be removed
'DeclarationPublic Overloads Sub Remove( _ ByVal selector As System.Predicate(Of DicomAttribute) _ )
public void Remove( System.Predicate<DicomAttribute> selector )
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.
DicomDataSet ds = new DicomDataSet("Dataset.dcm"); Predicate<DicomAttribute> removePatientName = attr => attr.KeywordCode == Keyword.PatientName; ds.Remove(removePatientName); var pn = ds[Keyword.PatientName].Value.ToString(); // null