DicomObjects.NET.V8
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: .NET CLR 4.0 or higher

    See Also