Java.Util.Prefs.Preferences.NodeExists Method
Returns whether the preference node with the given path name exists.

Syntax

[Android.Runtime.Register("nodeExists", "(Ljava/lang/String;)Z", "GetNodeExists_Ljava_lang_String_Handler")]
public abstract bool NodeExists (string path)

Parameters

path
the path name of the preference node to query.

Returns

Documentation for this section has not yet been entered.

Exceptions

TypeReason
Java.Lang.IllegalStateExceptionif this node has been removed and the path is not an empty string.
Java.Lang.IllegalArgumentExceptionif the path name is invalid.
Java.Lang.NullPointerExceptionif the given path is null.
Java.Util.Prefs.BackingStoreExceptionif the backing store is unavailable or causes an operation failure.

Remarks

Returns whether the preference node with the given path name exists. The path is treated as relative to this node if it doesn't start with a slash, otherwise it is treated as an absolute path.

Please note that if this node has been removed, an invocation of this node will throw an IllegalStateException unless the given path is an empty string, which will return false.

[Android Documentation]

Requirements

Namespace: Java.Util.Prefs
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1