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
    'Usage
     
    
    Dim instance As DicomAttribute
    Dim value As System.Boolean
     
    value = instance.Exists
    public virtual System.bool Exists {get;}
    public read-only property Exists: System.Boolean; virtual; 
    public function get Exists : System.boolean
    public: __property virtual System.bool get_Exists();
    public:
    virtual property System.bool Exists {
       System.bool 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