INode.SetUserData(String, Object, IUserDataHandler) Method

Definition

Associate an object to a key on this node.

[Android.Runtime.Register("setUserData", "(Ljava/lang/String;Ljava/lang/Object;Lorg/w3c/dom/UserDataHandler;)Ljava/lang/Object;", "GetSetUserData_Ljava_lang_String_Ljava_lang_Object_Lorg_w3c_dom_UserDataHandler_Handler:Org.W3c.Dom.INodeInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public Java.Lang.Object? SetUserData (string? key, Java.Lang.Object? data, Org.W3c.Dom.IUserDataHandler? handler);
[<Android.Runtime.Register("setUserData", "(Ljava/lang/String;Ljava/lang/Object;Lorg/w3c/dom/UserDataHandler;)Ljava/lang/Object;", "GetSetUserData_Ljava_lang_String_Ljava_lang_Object_Lorg_w3c_dom_UserDataHandler_Handler:Org.W3c.Dom.INodeInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member SetUserData : string * Java.Lang.Object * Org.W3c.Dom.IUserDataHandler -> Java.Lang.Object

Parameters

key
String

The key to associate the object to.

data
Object

The object to associate to the given key, or null to remove any existing association to that key.

handler
IUserDataHandler

The handler to associate to that key, or null.

Returns

Returns the DOMUserData previously associated to the given key on this node, or null if there was none.

Attributes

Remarks

Associate an object to a key on this node. The object can later be retrieved from this node by calling getUserData with the same key.

Added in DOM Level 3.

Java documentation for org.w3c.dom.Node.setUserData(java.lang.String, java.lang.Object, org.w3c.dom.UserDataHandler).

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