AlertDialog.Builder.SetMessage Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
| Name | Description |
|---|---|
| SetMessage(ICharSequence) |
Set the message to display. |
| SetMessage(Int32) |
Set the message to display using the given resource id. |
| SetMessage(String) |
Set the message to display. |
SetMessage(ICharSequence)
Set the message to display.
[Android.Runtime.Register("setMessage", "(Ljava/lang/CharSequence;)Landroid/app/AlertDialog$Builder;", "GetSetMessage_Ljava_lang_CharSequence_Handler")]
public virtual Android.App.AlertDialog.Builder SetMessage(Java.Lang.ICharSequence message);
[<Android.Runtime.Register("setMessage", "(Ljava/lang/CharSequence;)Landroid/app/AlertDialog$Builder;", "GetSetMessage_Ljava_lang_CharSequence_Handler")>]
abstract member SetMessage : Java.Lang.ICharSequence -> Android.App.AlertDialog.Builder
override this.SetMessage : Java.Lang.ICharSequence -> Android.App.AlertDialog.Builder
Parameters
- message
- ICharSequence
CharSequence
Returns
This Builder object to allow for chaining of calls to set methods
- Attributes
Remarks
Set the message to display.
Android reference for android.app.AlertDialog.Builder.setMessage.
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
SetMessage(Int32)
Set the message to display using the given resource id.
[Android.Runtime.Register("setMessage", "(I)Landroid/app/AlertDialog$Builder;", "GetSetMessage_IHandler")]
public virtual Android.App.AlertDialog.Builder SetMessage(int messageId);
[<Android.Runtime.Register("setMessage", "(I)Landroid/app/AlertDialog$Builder;", "GetSetMessage_IHandler")>]
abstract member SetMessage : int -> Android.App.AlertDialog.Builder
override this.SetMessage : int -> Android.App.AlertDialog.Builder
Parameters
- messageId
- Int32
int
Returns
This Builder object to allow for chaining of calls to set methods
- Attributes
Remarks
Set the message to display using the given resource id.
Android reference for android.app.AlertDialog.Builder.setMessage.
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
SetMessage(String)
Set the message to display.
public Android.App.AlertDialog.Builder SetMessage(string message);
member this.SetMessage : string -> Android.App.AlertDialog.Builder
Parameters
- message
- String
CharSequence
Returns
This Builder object to allow for chaining of calls to set methods
Remarks
Set the message to display.
Android reference for android.app.AlertDialog.Builder.setMessage.
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.