MessageBox.Show Method (Microsoft.Xna.Framework.Input)

Displays the message box interface asynchronously.

Namespace: Microsoft.Xna.Framework.Input
Assembly: MonoGame.Framework (MonoGame.Framework.dll 3.8.0.1082)
  • C#
  • VB
  • F#
[AsyncStateMachineAttribute(Microsoft.Xna.Framework.Input.MessageBox/<Show>d__4)]
public static Task<Nullable<int>> Show(
	string title, 
	string description, 
	IEnumerable<string> buttons
)

Syntax for VB is not yet implemented.

Syntax for F# is not yet implemented.

Parameters

title
Type: System.String
Title of the message box.
description
Type: System.String
Description of the message box.
buttons
Type: IEnumerable<System.String>
Captions of the message box buttons. Up to three supported.

Return Value

Type: Task<Nullable<System.Int32>>
Index of button selected by the player. Null if back was used.
Supported in:

    
 Windows DirectX Desktop