14.6.4.7 Parse
This static method returns an OracleIntervalYM structure and sets its value for time interval using a string. 
                  
Declaration
// C#
public static OracleIntervalYM Parse (string intervalStr);Parameters
- 
                        intervalStrA string representing the Oracle INTERVALYEARTOMONTH.
Return Value
Returns an OracleIntervalYM structure.
                  
Exceptions
ArgumentException - The intervalStr parameter is not in the valid format or intervalStr has an invalid value.
                  
ArgumentNullException - The intervalStr parameter is null.
                  
Remarks
The value specified in the supplied intervalStr must be in the Year-Month format.
                  
Example
"1-2" means 1 year and 2 months.