Sdílet prostřednictvím


AbstractPreferences Constructors

Definition

Overloads

AbstractPreferences(AbstractPreferences, String)

Creates a preference node with the specified parent and the specified name relative to its parent.

AbstractPreferences(IntPtr, JniHandleOwnership)

A constructor used when creating managed representations of JNI objects; called by the runtime.

AbstractPreferences(AbstractPreferences, String)

Creates a preference node with the specified parent and the specified name relative to its parent.

[Android.Runtime.Register(".ctor", "(Ljava/util/prefs/AbstractPreferences;Ljava/lang/String;)V", "")]
protected AbstractPreferences (Java.Util.Prefs.AbstractPreferences? parent, string? name);
[<Android.Runtime.Register(".ctor", "(Ljava/util/prefs/AbstractPreferences;Ljava/lang/String;)V", "")>]
new Java.Util.Prefs.AbstractPreferences : Java.Util.Prefs.AbstractPreferences * string -> Java.Util.Prefs.AbstractPreferences

Parameters

parent
AbstractPreferences

the parent of this preference node, or null if this is the root.

name
String

the name of this preference node, relative to its parent, or "" if this is the root.

Attributes

Exceptions

if the name contains a slash character or is empty if parent is not null.

Remarks

Creates a preference node with the specified parent and the specified name relative to its parent.

Java documentation for java.util.prefs.AbstractPreferences.AbstractPreferences(java.util.prefs.AbstractPreferences, java.lang.String).

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

AbstractPreferences(IntPtr, JniHandleOwnership)

A constructor used when creating managed representations of JNI objects; called by the runtime.

protected AbstractPreferences (IntPtr javaReference, Android.Runtime.JniHandleOwnership transfer);
new Java.Util.Prefs.AbstractPreferences : nativeint * Android.Runtime.JniHandleOwnership -> Java.Util.Prefs.AbstractPreferences

Parameters

javaReference
IntPtr

nativeint

A IntPtrcontaining a Java Native Interface (JNI) object reference.

transfer
JniHandleOwnership

A JniHandleOwnershipindicating how to handle javaReference

Remarks

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