Calendar.Builder.SetFields(Int32[]) 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.
Sets field parameters to their values given by fieldValuePairs that are pairs of a field and its value.
[Android.Runtime.Register("setFields", "([I)Ljava/util/Calendar$Builder;", "GetSetFields_arrayIHandler", ApiSince=26)]
public virtual Java.Util.Calendar.Builder SetFields(params int[] fieldValuePairs);
[<Android.Runtime.Register("setFields", "([I)Ljava/util/Calendar$Builder;", "GetSetFields_arrayIHandler", ApiSince=26)>]
abstract member SetFields : int[] -> Java.Util.Calendar.Builder
override this.SetFields : int[] -> Java.Util.Calendar.Builder
Parameters
- fieldValuePairs
- Int32[]
field-value pairs
Returns
this Calendar.Builder
- Attributes
Remarks
Sets field parameters to their values given by fieldValuePairs that are pairs of a field and its value. For example,
setFields(Calendar.YEAR, 2013,
Calendar.MONTH, Calendar.DECEMBER,
Calendar.DAY_OF_MONTH, 23);
is equivalent to the sequence of the following set calls:
set(Calendar.YEAR, 2013)
.set(Calendar.MONTH, Calendar.DECEMBER)
.set(Calendar.DAY_OF_MONTH, 23);
Java reference for java.util.Calendar.Builder.setFields.
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.