'Declaration
Public Function Insert( _
ByVal As DicomVRType, _
ByVal As String, _
ByVal As Integer, _
ByVal As DicomVRRestriction, _
ByVal As Integer _
) As DicomVR
'Usage
Dim instance As DicomVRTable
Dim code As DicomVRType
Dim name As String
Dim length As Integer
Dim restriction As DicomVRRestriction
Dim unitSize As Integer
Dim value As DicomVR
value = instance.Insert(code, name, length, restriction, unitSize)
public DicomVr insert(DicomVrType code, String name, int length, DicomVrRestriction restriction, int unitSize)
function Leadtools.Dicom.DicomVRTable.Insert(
code ,
name ,
length ,
restriction ,
unitSize
)
Parameters
- code
- Code that indicates the type of value to be stored in the data element.
- name
- The name of the value representation. For examples of Value Representation Names, refer to the Default Value Representation Table.
- length
- The length of the value to be stored in the data element
- restriction
- Restrictions on the length.
- unitSize
- The size of the smallest item to be stored in the value field of the data element
Return Value
DicomVR class if the method was successful; otherwise, null.