Preferences.Node(String) Method

Definition

Returns the named preference node in the same tree as this node, creating it and any of its ancestors if they do not already exist.

[Android.Runtime.Register("node", "(Ljava/lang/String;)Ljava/util/prefs/Preferences;", "GetNode_Ljava_lang_String_Handler")]
public abstract Java.Util.Prefs.Preferences? Node (string? pathName);
[<Android.Runtime.Register("node", "(Ljava/lang/String;)Ljava/util/prefs/Preferences;", "GetNode_Ljava_lang_String_Handler")>]
abstract member Node : string -> Java.Util.Prefs.Preferences

Parameters

pathName
String

the path name of the preference node to return.

Returns

the specified preference node.

Attributes

Exceptions

if this node has been removed.

if the path name is invalid.

if the given path is null.

Remarks

Returns the named preference node in the same tree as this node, creating it and any of its ancestors if they do not already exist. Accepts a relative or absolute path name. Relative path names (which do not begin with the slash character ('/')) are interpreted relative to this preference node.

If the returned node did not exist prior to this call, this node and any ancestors that were created by this call are not guaranteed to become permanent until the flush method is called on the returned node (or one of its ancestors or descendants).

Java documentation for java.util.prefs.Preferences.node(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