IList.Set(Int32, Object) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Replaces the element at the specified position in this list with the specified element (optional operation).
[Android.Runtime.Register("set", "(ILjava/lang/Object;)Ljava/lang/Object;", "GetSet_ILjava_lang_Object_Handler:Java.Util.IListInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public Java.Lang.Object? Set (int index, Java.Lang.Object? element);
[<Android.Runtime.Register("set", "(ILjava/lang/Object;)Ljava/lang/Object;", "GetSet_ILjava_lang_Object_Handler:Java.Util.IListInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member Set : int * Java.Lang.Object -> Java.Lang.Object
Parameters
- index
- Int32
index of the element to replace
- element
- Object
element to be stored at the specified position
Returns
the element previously at the specified position
- Attributes
Remarks
Replaces the element at the specified position in this list with the specified element (optional operation).
Java documentation for java.util.List.set(int, E)
.
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.