DicomObjects.NET.8.48 Documentation
DicomObjects Namespace / DicomAttribute Class / Exists Property

In This Topic
    Exists Property
    In This Topic
    Determines whether an attribute actually exists
    Syntax
    'Declaration
     
    
    Public Overridable ReadOnly Property Exists As System.Boolean
    public virtual System.bool Exists {get;}
    Remarks

    This property returns True if this attribute exists within the Image/DataSet.

    If an attempt is made to access a non-existent element of a DicomAttributeCollection, then no error is generated, but the element item returned is a unique "error element", which has an Exists property of False, and returns a Value of Null.
    Requirements

    Target Platforms: .NET CLR 4.8 or higher

    See Also