SparseArray<E>.Get 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
Get(Int32) |
Gets the Object mapped from the specified key, or |
Get(Int32, E) |
Get(Int32)
Gets the Object mapped from the specified key, or null
if no such mapping has been made.
[Android.Runtime.Register("get", "(I)Ljava/lang/Object;", "")]
public virtual E Get (int key);
[<Android.Runtime.Register("get", "(I)Ljava/lang/Object;", "")>]
override this.Get : int -> 'E
Parameters
- key
- Int32
Returns
- Attributes
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
Get(Int32, E)
[Android.Runtime.Register("get", "(ILjava/lang/Object;)Ljava/lang/Object;", "")]
public virtual E Get (int key, E valueIfKeyNotFound);
[<Android.Runtime.Register("get", "(ILjava/lang/Object;)Ljava/lang/Object;", "")>]
override this.Get : int * 'E -> 'E
Parameters
- key
- Int32
- valueIfKeyNotFound
- E
Returns
- Attributes
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.