Condividi tramite


View.GetTag(Int32) Method

Definition

Returns the tag associated with this view and the specified key.

[Android.Runtime.Register("getTag", "(I)Ljava/lang/Object;", "GetGetTag_IHandler")]
public virtual Java.Lang.Object? GetTag (int key);
[<Android.Runtime.Register("getTag", "(I)Ljava/lang/Object;", "GetGetTag_IHandler")>]
abstract member GetTag : int -> Java.Lang.Object
override this.GetTag : int -> Java.Lang.Object

Parameters

key
Int32

The key identifying the tag

Returns

the Object stored in this view as a tag, or null if not set

Attributes

Remarks

Returns the tag associated with this view and the specified key.

Java documentation for android.view.View.getTag(int).

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

See also

  • <xref:Android.Views.View.SetTag(System.Int32%2c+Java.Lang.Object)>
  • Tag