Share via


Preference.HasKey Property

Definition

Checks whether this Preference has a valid key.

public virtual bool HasKey { [Android.Runtime.Register("hasKey", "()Z", "GetHasKeyHandler")] get; }
[<get: Android.Runtime.Register("hasKey", "()Z", "GetHasKeyHandler")>]
member this.HasKey : bool

Property Value

True if the key exists and is not a blank string, false otherwise.

Attributes

Remarks

Checks whether this Preference has a valid key.

Java documentation for android.preference.Preference.hasKey().

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