DicomObjects.NET.8.48 Documentation
DicomObjects Namespace / DicomDataSet Class / RemovePrivateAttributes Method
Remove top level private attributes only by default. When set to true, all private attributes within sequence and sub-sequences will be removed. The parent sequence will not be removed even if it is private.
Example

In This Topic
    RemovePrivateAttributes Method
    In This Topic
    Remove private attributes
    Syntax
    'Declaration
     
    
    Public Sub RemovePrivateAttributes( _
       Optional ByVal deep As System.Boolean _
    ) 
    public void RemovePrivateAttributes( 
       System.bool deep
    )

    Parameters

    deep
    Remove top level private attributes only by default. When set to true, all private attributes within sequence and sub-sequences will be removed. The parent sequence will not be removed even if it is private.
    Remarks
    This method removes private attributes with an odd group number
    Example
    DicomDataSet ds = new DicomDataSet("Dataset.dcm");
    bool deep = true;
    ds.RemovePrivateAttributes(deep);
    Requirements

    Target Platforms: .NET CLR 4.8 or higher

    See Also