Duration.GetField(DatatypeConstants+Field) Method
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.
Gets the value of a field.
[Android.Runtime.Register("getField", "(Ljavax/xml/datatype/DatatypeConstants$Field;)Ljava/lang/Number;", "GetGetField_Ljavax_xml_datatype_DatatypeConstants_Field_Handler")]
public abstract Java.Lang.Number? GetField (Javax.Xml.Datatype.DatatypeConstants.Field? field);
[<Android.Runtime.Register("getField", "(Ljavax/xml/datatype/DatatypeConstants$Field;)Ljava/lang/Number;", "GetGetField_Ljavax_xml_datatype_DatatypeConstants_Field_Handler")>]
abstract member GetField : Javax.Xml.Datatype.DatatypeConstants.Field -> Java.Lang.Number
Parameters
- field
- DatatypeConstants.Field
one of the six Field constants (YEARS,MONTHS,DAYS,HOURS, MINUTES, or SECONDS.)
Returns
If the specified field is present, this method returns
a non-null non-negative Number
object that
represents its value. If it is not present, return null.
For YEARS, MONTHS, DAYS, HOURS, and MINUTES, this method
returns a java.math.BigInteger
object. For SECONDS, this
method returns a java.math.BigDecimal
.
- Attributes
Exceptions
If the field
is null
.
Remarks
Java documentation for javax.xml.datatype.Duration.getField(javax.xml.datatype.Field)
.
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.