[This is preliminary documentation and is subject to change.]
Get the Values of the attribute specified in the
tagSequence.
- tagSequence (String)
- The tagsequence of the attribute of which you want the values.
A Values Object containing a list of all values the attribute contains.
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
| Exception | Condition |
|---|---|
| HliException |
Tag sequence supplied invalid for this operation..
|