IWebMatrixHost.ShowDialog Method (String, String, DialogSize, MessageBoxButton, MessageBoxResult, ICommand())

Applies to v2.

Indicates a value whether the command will show a dialog command.

Namespace:  Microsoft.WebMatrix.Extensibility
Assembly:  Microsoft.WebMatrix.Extensibility (in Microsoft.WebMatrix.Extensibility.dll)

Syntax

'Declaration
Function ShowDialog ( _
    title As String, _
    message As String, _
    dialogSize As DialogSize, _
    buttons As MessageBoxButton, _
    defaultButton As MessageBoxResult, _
    buttonCommands As ICommand() _
) As Nullable(Of Boolean)
'Usage
Dim instance As IWebMatrixHost 
Dim title As String 
Dim message As String 
Dim dialogSize As DialogSize 
Dim buttons As MessageBoxButton 
Dim defaultButton As MessageBoxResult 
Dim buttonCommands As ICommand()
Dim returnValue As Nullable(Of Boolean)

returnValue = instance.ShowDialog(title, _
    message, dialogSize, buttons, defaultButton, _
    buttonCommands)
Nullable<bool> ShowDialog(
    string title,
    string message,
    DialogSize dialogSize,
    MessageBoxButton buttons,
    MessageBoxResult defaultButton,
    ICommand[] buttonCommands
)
Nullable<bool> ShowDialog(
    String^ title, 
    String^ message, 
    DialogSize dialogSize, 
    MessageBoxButton buttons, 
    MessageBoxResult defaultButton, 
    array<ICommand^>^ buttonCommands
)
abstract ShowDialog : 
        title:string * 
        message:string * 
        dialogSize:DialogSize * 
        buttons:MessageBoxButton * 
        defaultButton:MessageBoxResult * 
        buttonCommands:ICommand[] -> Nullable<bool> 
function ShowDialog(
    title : String, 
    message : String, 
    dialogSize : DialogSize, 
    buttons : MessageBoxButton, 
    defaultButton : MessageBoxResult, 
    buttonCommands : ICommand[]
) : Nullable<boolean>

Parameters

Return Value

Type: System.Nullable(Of Boolean)
true if the command will show a dialog box; otherwise, false.

See Also

Reference

IWebMatrixHost Interface

ShowDialog Overload

Microsoft.WebMatrix.Extensibility Namespace