Visual Basic (Declaration) | |
---|---|
Public Overloads Function ShowMessageAsync( _ ByVal message As String, _ ByVal dialogButtons As IEnumerable(Of DialogResult), _ Optional ByVal title As String _ ) As Task(Of DialogResult) |
Visual Basic (Usage) | ![]() |
---|---|
Dim instance As DialogManager Dim message As String Dim dialogButtons As IEnumerable(Of DialogResult) Dim title As String Dim value As Task(Of DialogResult) value = instance.ShowMessageAsync(message, dialogButtons, title) |
C# | |
---|---|
public Task<DialogResult> ShowMessageAsync( string message, IEnumerable<DialogResult> dialogButtons, string title ) |
C++/CLI | |
---|---|
public: Task<DialogResult>^ ShowMessageAsync( String^ message, IEnumerable<DialogResult>^ dialogButtons, String^ title ) |
Parameters
- message
- The message to display.
- dialogButtons
- A value that indicates the button or buttons to display. See DialogButtons for predefined button sets.
- title
- Optional title of the message box.
Return Value
The dialog result.Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family