DVTk API
GetVR Method (tagSequence)
DVTkDvtkHighLevelInterface.Dicom.OtherAttributeSetGetVR(String)
DVTk API

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

Get the Value Representation of the attribute specified in the tagSequence.
Declaration Syntax
C#Visual BasicVisual C++
public VR GetVR(
	string tagSequence
)
Public Function GetVR ( _
	tagSequence As String _
) As VR
public:
VR GetVR(
	String^ tagSequence
)
Parameters
tagSequence (String)
The tagsequence of the attribute of which you want the Value Representation.
Return Value
The Value Representation.
Examples
VB .NET
CopyC#
' Example: Get the Value Representation of an attribute with a 
' specified tagSequence

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

Dim myVR As DvtkData.Dimse.VR
If myDataSet.Exists("0x00100010") Then
    myVR = myDataSet.GetVR("0x00100010")
End If

'alternatively you can use
If myDataSet.Exists("0x00100010") Then
    myVR = myDataSet("0x00100010").VR
End If
Exceptions
ExceptionCondition
HliException Tag sequence supplied invalid for this operation..

Assembly: DvtkHighLevelInterface (Module: DvtkHighLevelInterface) Version: 0.0.0.0