14.6.2.2 OracleIntervalYM(string)
This method creates a new instance of the OracleIntervalYM structure and sets its value using the supplied string. 
                  
Declaration
// C#
public OracleIntervalYM (string intervalStr); Parameters
- 
                        intervalStrA string representing the Oracle INTERVALYEARTOMONTH.
Remarks
The value specified in the supplied intervalStr must be in Year-Month format.
                  
Exceptions
ArgumentException - The intervalStr parameter is not in the valid format or intervalStr has an invalid value.
                  
ArgumentNullException - The intervalStr parameter is null.
                  
Example
"1-2" means 1 year and 2 months.