Aracılığıyla paylaş


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

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

Associates the specified value with the specified attribute name (key) in this Map. If the Map previously contained a mapping for the attribute name, the old value is replaced.

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