DicomObjects.NET.8.48 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 System.Object
    'Usage
     
    
    Dim instance As DicomAttribute
    Dim ds As DicomDataSet
    Dim value As System.Object
     
    value = instance.ValueInContext(ds)
    public System.object ValueInContext( 
       DicomDataSet ds
    )
    public function ValueInContext( 
        ds: DicomDataSet
    ): System.TObject; 
    public function ValueInContext( 
       ds : DicomDataSet
    ) : System.Object;
    public: System.Object* ValueInContext( 
       DicomDataSet* ds
    ) 
    public:
    System.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: .NET CLR 4.8 or higher

    See Also