View.SetTag(Int32, Object) View.SetTag(Int32, Object) Method

Definition

Sets a tag associated with this view and a key.

[Android.Runtime.Register("setTag", "(ILjava/lang/Object;)V", "GetSetTag_ILjava_lang_Object_Handler", ApiSince=4)]
public virtual void SetTag (int key, Java.Lang.Object tag);
abstract member SetTag : int * Java.Lang.Object -> unit
override this.SetTag : int * Java.Lang.Object -> unit

Parameters

key
Int32 Int32

The key identifying the tag

tag
Object Object

An Object to tag the view with

Exceptions

If they specified key is not valid

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

See also