Attributes.Put(Object, Object) Method

Definition

Associates the specified value with the specified attribute name (key) in this Map.

[Android.Runtime.Register("put", "(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;", "GetPut_Ljava_lang_Object_Ljava_lang_Object_Handler")]
public virtual Java.Lang.Object? Put (Java.Lang.Object? name, Java.Lang.Object? value);
[<Android.Runtime.Register("put", "(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;", "GetPut_Ljava_lang_Object_Ljava_lang_Object_Handler")>]
abstract member Put : Java.Lang.Object * Java.Lang.Object -> Java.Lang.Object
override this.Put : Java.Lang.Object * Java.Lang.Object -> Java.Lang.Object

Parameters

name
Object

the attribute name

value
Object

the attribute value

Returns

Object

the previous value of the attribute, or null if none

Attributes

Exceptions

when key is not an Attributes.Name or value is not a String.

Remarks

Java documentation for java.util.jar.Attributes.put(java.lang.Object, java.lang.Object).

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