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

Syntax

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

Parameters

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

Remarks

Set a listener to be invoked when button 2 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