Läs på engelska

Dela via


View.GetTag(Int32) Method

Definition

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

C#
[Android.Runtime.Register("getTag", "(I)Ljava/lang/Object;", "GetGetTag_IHandler")]
public virtual Java.Lang.Object? GetTag(int key);

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

Produkt Versioner
.NET for Android .NET for Android API 34, .NET for Android API 35

See also

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