Android.App.AlertDialog.SetButton Method
Set a message to be sent when a button is pressed.

Syntax

[Android.Runtime.Register("setButton", "(ILjava/lang/CharSequence;Landroid/os/Message;)V", "GetSetButton_ILjava_lang_CharSequence_Landroid_os_Message_Handler")]
public virtual void SetButton (int whichButton, Java.Lang.ICharSequence text, Android.OS.Message msg)

Parameters

whichButton
Which button to set the message for, can be one of Android.Content.DialogInterface.ButtonPositive, Android.Content.DialogInterface.ButtonNegative, or Android.Content.DialogInterface.ButtonNeutral
text
The text to display in positive button.
msg
The Android.OS.Message to be sent when clicked.

Remarks

Set a message to be sent when a button 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 3