DicomObjects.NET.8.48 Documentation
DicomObjects Namespace / DicomGlobal Class / IgnoreAttribute Method
The Group to ignore
The Element to ignore
Example

In This Topic
    IgnoreAttribute Method
    In This Topic
    Instruct DicomObjects to ignore particular attributes
    Syntax
    'Declaration
     
    
    Public Shared Sub IgnoreAttribute( _
       ByVal Group As System.Integer, _
       ByVal Element As System.Integer _
    ) 
    public static void IgnoreAttribute( 
       System.int Group,
       System.int Element
    )

    Parameters

    Group
    The Group to ignore
    Element
    The Element to ignore
    Remarks
    This is a very specialist feature, intended only to be used when receiving or reading data from systems so bad that the data cannot be fixed after reading. It is most commonly used when receiving badly formatted sequences, but in that context can only be used when they use explicit length for the sequence as a whole, as it would otherwise not be possible to determine the location of the end of the sequence.
    Example
    int group = 0x0010;
    int element = 0x0010;
    DicomGlobal.IgnoreAttribute(group, element);
    DicomImage image = new DicomImage("your_dicom_image.dcm"); // image will not contain patient name (0010,0010)
    Requirements

    Target Platforms: .NET CLR 4.8 or higher

    See Also