Sdílet prostřednictvím


IMapEntry.SetValue(Object) Method

Definition

Replaces the value corresponding to this entry with the specified value (optional operation).

[Android.Runtime.Register("setValue", "(Ljava/lang/Object;)Ljava/lang/Object;", "GetSetValue_Ljava_lang_Object_Handler:Java.Util.IMapEntryInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public Java.Lang.Object? SetValue (Java.Lang.Object? value);
[<Android.Runtime.Register("setValue", "(Ljava/lang/Object;)Ljava/lang/Object;", "GetSetValue_Ljava_lang_Object_Handler:Java.Util.IMapEntryInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member SetValue : Java.Lang.Object -> Java.Lang.Object

Parameters

value
Object

new value to be stored in this entry

Returns

old value corresponding to the entry

Attributes

Remarks

Replaces the value corresponding to this entry with the specified value (optional operation). (Writes through to the map.) The behavior of this call is undefined if the mapping has already been removed from the map (by the iterator's remove operation).

Java documentation for java.util.Map.Entry.setValue(V).

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