DicomObjects.NET8 Documentation
DicomObjects Namespace / DicomAttribute Class / ValueInContext Method

The DicomDataSet which contains the definition/description of the current DicomAttribute




In This Topic
    ValueInContext Method
    In This Topic
    Returns the value of Data Element, which may vary according to its surrounding context
    Syntax
    'Declaration
     
    
    Public Function ValueInContext( _
       ByVal ds As DicomDataSet _
    ) As Object
    'Usage
     
    
    Dim instance As DicomAttribute
    Dim ds As DicomDataSet
    Dim value As Object
     
    value = instance.ValueInContext(ds)
    public object ValueInContext( 
       DicomDataSet ds
    )
    public:
    Object^ ValueInContext( 
       DicomDataSet^ ds
    ) 

    Parameters

    ds

    The DicomDataSet which contains the definition/description of the current DicomAttribute

    Return Value

    object
    Remarks

    This method is used for accessing attribute values which may vary according to its surrounding context. For example when accessing Patient Name (0010, 0010), the correct Character Set Encoding info is needed in order to return valid value. There is no problem with this when the patient name and the Character Set Encoding are within the same level. But it would be difficult to tell which Character Set to use if you have nested level of DicomDataSets, which is quite common in Sequence. To avoid this user can provide a DicomDataSet which defines/describes how the value could be interpreted.

    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