Parse
Age.Parse method
Converts the text representation of an age to its typed equivalent.
public static Age Parse(string ageText)
| Parameter | Type | Description |
|---|---|---|
| ageText | String | Text representation of an age. |
Return Value
The parsed Age.
Exceptions
| exception | condition |
|---|---|
| MedicalApiException | Unable to parse age units from the ageText. |
| ArgumentException | AGE must be in format: 1-3 digits, 1 age unit symbol, but it has more than 4 symbols. |
See Also
- class Age
- namespace Aspose.Medical.Dicom.Elements
- assembly Aspose.Medical