Leadtools.Dicom.Common Send comments on this topic. | Back to Introduction - All Topics | Help Version 17.0.3.29
IsValidVRValue Method
See Also 
Leadtools.Dicom.Common.Validation Namespace > DicomVRValidation Class : IsValidVRValue Method



vr
The VR to check against the values.
values
The values to check.
errorMessage
The error message if the validation failed.
vr
The VR to check against the values.
values
The values to check.
errorMessage
The error message if the validation failed.
Determines whether list of values for the VR is valid.

Syntax

Visual Basic (Declaration) 
Public Shared Function IsValidVRValue( _
   ByVal vr As DicomVRType, _
   ByVal values As List(Of String), _
   ByRef errorMessage As String _
) As Boolean
Visual Basic (Usage)Copy Code
Dim vr As DicomVRType
Dim values As List(Of String)
Dim errorMessage As String
Dim value As Boolean
 
value = DicomVRValidation.IsValidVRValue(vr, values, errorMessage)
C# 
public static bool IsValidVRValue( 
   DicomVRType vr,
   List<string> values,
   out string errorMessage
)
C++/CLI 
public:
static bool IsValidVRValue( 
   DicomVRType vr,
   List<String^>^ values,
   [Out] String^ errorMessage
) 

Parameters

vr
The VR to check against the values.
values
The values to check.
errorMessage
The error message if the validation failed.

Return Value

true if values are valid for the specified VR; otherwise, false.

Requirements

Target Platforms: Microsoft .NET Framework 2.0, Windows 2000, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7

See Also

Leadtools.Dicom.Common requires a Document or Medical toolkit license and unlock key. For more information, refer to: Imaging Pro/Document/Medical Features