Duration Constructor (YearMonthDuration)Duration Constructor (YearMonthDuration)Duration Constructor (YearMonthDuration)

Initializes a new instance of the DurationDurationDuration structure from a YearMonthDurationYearMonthDurationYearMonthDuration.

Syntax

Public Sub New ( _
    yearMonth As YearMonthDuration _
)
public Duration(
    YearMonthDuration yearMonth
)
public:
Duration(
    YearMonthDuration yearMonth
)
 

Parameters

yearMonth

Type: XmlPrime.YearMonthDurationXmlPrime.YearMonthDurationXmlPrime::YearMonthDuration

The year and month components of the duration.