DicomObjects.NET8 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 Boolean
    'Usage
     
    
    Dim instance As DicomAttribute
    Dim value As Boolean
     
    value = instance.Exists
    public virtual bool Exists {get;}
    public:
    virtual property bool Exists {
       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: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also