Android.App.AlertDialog.SetButton Method
Set a listener to be invoked when button 1 of the dialog is pressed.

Syntax

[Android.Runtime.Register("setButton", "(Ljava/lang/CharSequence;Landroid/content/DialogInterface$OnClickListener;)V", "GetSetButton_Ljava_lang_CharSequence_Landroid_content_DialogInterface_OnClickListener_Handler")]
[System.Obsolete("deprecated")]
public virtual void SetButton (Java.Lang.ICharSequence text, Android.Content.IDialogInterfaceOnClickListener listener)

Parameters

text
The text to display in button 1.
listener
The Android.Content.IDialogInterfaceOnClickListener to use.

Remarks

Set a listener to be invoked when button 1 of the dialog is pressed.

[Android Documentation]

Requirements

Namespace: Android.App
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1