Udostępnij za pośrednictwem


PreferenceManager.SharedPreferencesMode Property

Definition

Returns the current mode of the SharedPreferences file that preferences managed by this will use. -or- Sets the mode of the SharedPreferences file that preferences managed by this will use.

public virtual Android.Content.FileCreationMode SharedPreferencesMode { [Android.Runtime.Register("getSharedPreferencesMode", "()I", "GetGetSharedPreferencesModeHandler")] get; [Android.Runtime.Register("setSharedPreferencesMode", "(I)V", "GetSetSharedPreferencesMode_IHandler")] set; }
[<get: Android.Runtime.Register("getSharedPreferencesMode", "()I", "GetGetSharedPreferencesModeHandler")>]
[<set: Android.Runtime.Register("setSharedPreferencesMode", "(I)V", "GetSetSharedPreferencesMode_IHandler")>]
member this.SharedPreferencesMode : Android.Content.FileCreationMode with get, set

Property Value

The mode that can be passed to Context#getSharedPreferences(String, int).

Attributes

Remarks

Property getter documentation:

Returns the current mode of the SharedPreferences file that preferences managed by this will use.

Java documentation for android.preference.PreferenceManager.getSharedPreferencesMode().

Property setter documentation:

Sets the mode of the SharedPreferences file that preferences managed by this will use.

Java documentation for android.preference.PreferenceManager.setSharedPreferencesMode(int).

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

See also

  • <xref:Android.Content.Context.GetSharedPreferences(System.String%2c+Android.Content.FileCreationMode)>