Parse

ValueRepresentation.Parse method

Converts the string representation of a VR to its typed equivalent.

public static ValueRepresentation Parse(string vrCode)
ParameterTypeDescription
vrCodeStringTwo-character VR code. See valid codes in https://dicom.nema.org/medical/dicom/current/output/chtml/part05/sect_6.2.html#table_6.2-1 (VR name column).

Return Value

A ValueRepresentation equivalent to the VR specified in vrCode.

Exceptions

exceptioncondition
ArgumentExceptionInvalid VR code.

See Also