'DeclarationPublic Overloads Function Value( _ ByVal Keyword As System.String _ ) As System.Object
public System.object Value( System.string Keyword )
Parameters
- Keyword
The String Keyword of the DicomAttribute
Return Value
object
The String Keyword of the DicomAttribute
'DeclarationPublic Overloads Function Value( _ ByVal Keyword As System.String _ ) As System.Object
public System.object Value( System.string Keyword )
The String Keyword of the DicomAttribute
The type of variant returned depends on the value representation of the data element, and may be a string, date (for time, date or date-time), or a numeric type, including floating point values where appropriate.
Data elements of types not known to the program, whether private elements, or attributes recently defined by DICOM return the string " Unknown Data Type".
DicomDataSet ds = new DicomDataSet("Dataset.dcm"); var patientNameString = Keyword.PatientName.ToString(); var patientName = ds.Value(patientNameString); Debug.WriteLine($"Patient Name: {patientName}"); // Example output: Patient Name: John Doe