Duration.Years Property

Definition

Get the years value of this <code>Duration</code> as an <code>int</code> or <code>0</code> if not present.

public virtual int Years { [Android.Runtime.Register("getYears", "()I", "GetGetYearsHandler")] get; }
[<get: Android.Runtime.Register("getYears", "()I", "GetGetYearsHandler")>]
member this.Years : int

Property Value

Int32

If the years field is present, return its value as an <code>int</code>, else return <code>0</code>.

Attributes

Remarks

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

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