Compartilhar via


PreferenceActivity.FindPreference Method

Definition

Overloads

FindPreference(String)
Obsolete.

Finds a Preference based on its key.

FindPreference(ICharSequence)
Obsolete.

Finds a Preference based on its key.

FindPreference(String)

Caution

deprecated

Finds a Preference based on its key.

[System.Obsolete("deprecated")]
public Android.Preferences.Preference? FindPreference (string? key);
[<System.Obsolete("deprecated")>]
member this.FindPreference : string -> Android.Preferences.Preference

Parameters

key
String

The key of the preference to retrieve.

Returns

The Preference with the key, or null.

Attributes

Remarks

Finds a Preference based on its key.

This member is deprecated. This function is not relevant for a modern fragment-based PreferenceActivity.

Java documentation for android.preference.PreferenceActivity.findPreference(java.lang.CharSequence).

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

FindPreference(ICharSequence)

Caution

deprecated

Finds a Preference based on its key.

[Android.Runtime.Register("findPreference", "(Ljava/lang/CharSequence;)Landroid/preference/Preference;", "GetFindPreference_Ljava_lang_CharSequence_Handler")]
[System.Obsolete("deprecated")]
public virtual Android.Preferences.Preference? FindPreference (Java.Lang.ICharSequence? key);
[<Android.Runtime.Register("findPreference", "(Ljava/lang/CharSequence;)Landroid/preference/Preference;", "GetFindPreference_Ljava_lang_CharSequence_Handler")>]
[<System.Obsolete("deprecated")>]
abstract member FindPreference : Java.Lang.ICharSequence -> Android.Preferences.Preference
override this.FindPreference : Java.Lang.ICharSequence -> Android.Preferences.Preference

Parameters

key
ICharSequence

The key of the preference to retrieve.

Returns

The Preference with the key, or null.

Attributes

Remarks

Finds a Preference based on its key.

This member is deprecated. This function is not relevant for a modern fragment-based PreferenceActivity.

Java documentation for android.preference.PreferenceActivity.findPreference(java.lang.CharSequence).

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.

See also

Applies to