DVTk API
GetValues Method (tagSequence)
DVTkDvtkHighLevelInterface.Dicom.OtherAttributeSetGetValues(String)
DVTk API

[This is preliminary documentation and is subject to change.]

Get the Values of the attribute specified in the tagSequence.
Declaration Syntax
C#Visual BasicVisual C++
public Values GetValues(
	string tagSequence
)
Public Function GetValues ( _
	tagSequence As String _
) As Values
public:
Values^ GetValues(
	String^ tagSequence
)
Parameters
tagSequence (String)
The tagsequence of the attribute of which you want the values.
Return Value
A Values Object containing a list of all values the attribute contains.
Examples
VB .NET
CopyC#
' Example: Get the Values of the attribute with a 
' specified tagSequence

'DataSet is inherited from AttributeSet
Dim myDataSet As DvtkHighLevelInterface.Dicom.Other.DataSet
myDataSet.Read("c:\Somefile.dcm")        

Dim myValues As DvtkHighLevelInterface.Dicom.Other.Values

If mydataset.Exists(("0x00100010")) Then
        myValues = myDataSet.GetValues("0x00100010")
    'Now we have a Values object which contains all the values of the specified attribute
End If                


'To get the first value from the list (use this also when the attribute can only contain 1 value)
Dim firstValue As String 
If mydataset.Exists(("0x00100010")) Then
    if mydataset("0x00100010").Values.Count >0 then
        firstValue = myValues(0)
    End If
End If
Exceptions
ExceptionCondition
HliException Tag sequence supplied invalid for this operation..

Assembly: DvtkHighLevelInterface (Module: DvtkHighLevelInterface) Version: 0.0.0.0