MessageDialog Constructor (String, String)

Initializes a new instance of the MessageDialog class to display a titled message dialog that can be used to ask your user simple questions.

Syntax

public:
MessageDialog(
         String^ content,
         String^ title
)  

Parameters

content
Type: String 

  The message displayed to the user.

title
Type: String 

  The title you want displayed on the dialog.

Remarks

When localizing the content of a message dialog with string resources (WinJS.Resources), the lang property returned by the getString method is applied by the MessageDialog constructor automatically. You cannot specify this property in the constructor.

Requirements

Namespace: Windows.UI.Popups

Metadata: windows.winmd

See also

Reference

MessageDialog Class

MessageDialog Members

Windows.UI.Popups Namespace