DicomObjects.NET Core Documentation
DicomObjects Namespace / DicomAttribute Class / Value Property



In This Topic
    Value Property (DicomAttribute)
    In This Topic
    The value of a Data Element
    Syntax
    'Declaration
     
    
    Public ReadOnly Property Value As Object
    'Usage
     
    
    Dim instance As DicomAttribute
    Dim value As Object
     
    value = instance.Value
    public object Value {get;}
    public:
    property Object^ Value {
       Object^ get();
    }
    Remarks

    The type of object returned depends on the value representation of the data element, and may be a string, date (or time, date or date-time), or a numeric type, including floating point values where appropriate.

    Data elements of types not known to the program, whether private elements, or attributes recently defined by DICOM return the string " Unknown Data Type".

    The pixel data attribute(7FE0,0010) is handled slightly differently and returns a flattened 1 dimensional array.

    If the data dictionary lists the element as having the possibility of a value multiplicity of >1, then an single dimensional array of the appropriate type is returned, the size of the array reflecting the actual number of elements present (which may be just one).

    If the element is a sequence then an Object of type DicomDataSetCollection is returned. As this is the only possible result of type Object, it can easily be identified using Visual Basic’s "Vartype" function or equivalent.

    Non-existent Elements have 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