Share via


Duration.Months Property

Definition

Obtains the value of the MONTHS field as an integer value, or 0 if not present.

public virtual int Months { [Android.Runtime.Register("getMonths", "()I", "GetGetMonthsHandler")] get; }
[<get: Android.Runtime.Register("getMonths", "()I", "GetGetMonthsHandler")>]
member this.Months : int

Property Value

Months of this Duration.

Attributes

Remarks

Obtains the value of the MONTHS field as an integer value, or 0 if not present.

This method works just like #getYears() except that this method works on the MONTHS field.

Java documentation for javax.xml.datatype.Duration.getMonths().

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to