JavaList.Remove 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.
Overloads
| Name | Description |
|---|---|
| Remove(Int32) |
Gets and removes the element at the specified position. |
| Remove(Object) |
Removes the first matching element from the list, if present. |
| Remove(Object) |
Removes the first matching element from the list. |
Remove(Int32)
Gets and removes the element at the specified position.
public virtual Java.Lang.Object? Remove(int location);
abstract member Remove : int -> Java.Lang.Object
override this.Remove : int -> Java.Lang.Object
Parameters
- location
- Int32
The position of the element to remove.
Returns
The element read at the specified position.
Remarks
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
Remove(Object)
Removes the first matching element from the list, if present.
public void Remove(object? item);
abstract member Remove : obj -> unit
override this.Remove : obj -> unit
Parameters
- item
- Object
The element to remove.
Implements
Remarks
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
Remove(Object)
Removes the first matching element from the list.
public virtual bool Remove(Java.Lang.Object? item);
abstract member Remove : Java.Lang.Object -> bool
override this.Remove : Java.Lang.Object -> bool
Parameters
- item
- Object
The element to remove.
Returns
true if an element was removed; otherwise, false.
Remarks
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.