Duration.Years Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
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.