Condividi tramite


DateTimeFormatter.ResolverFields Property

Definition

Gets the resolver fields to use during parsing.

public System.Collections.Generic.ICollection<Java.Time.Temporal.ITemporalField>? ResolverFields { [Android.Runtime.Register("getResolverFields", "()Ljava/util/Set;", "", ApiSince=26)] get; }
[<get: Android.Runtime.Register("getResolverFields", "()Ljava/util/Set;", "", ApiSince=26)>]
member this.ResolverFields : System.Collections.Generic.ICollection<Java.Time.Temporal.ITemporalField>

Property Value

the immutable set of resolver fields of this formatter, null if no fields

Attributes

Remarks

Gets the resolver fields to use during parsing.

This returns the resolver fields, used during the second phase of parsing when fields are resolved into dates and times. By default, a formatter has no resolver fields, and thus returns null. See #withResolverFields(Set) for more details.

Java documentation for java.time.format.DateTimeFormatter.getResolverFields().

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