共用方式為


Duration.Months 屬性

定義

取得 MONTH 欄位的值做為整數值,如果不存在則為 0。

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

屬性值

這個 Duration的月份。

屬性

備註

取得 MONTH 欄位的值做為整數值,如果不存在則為 0。

這個方法的運作方式就像這個方法在 MONTHS 欄位上運作一樣 #getYears()

javax.xml.datatype.Duration.getMonths()Java 檔。

此頁面的部分是根據 Android 開放原始碼專案所建立和共用的工作進行修改,並根據 Creative Commons 2.5 屬性授權中所述的詞彙使用。

適用於