IWebMatrixHost.ShowDialog Método (String, String, DialogSize, MessageBoxButton, MessageBoxResult, array<ICommand )
Lo siguiente se aplica a v2.
Indica un valor para establecer si el comando mostrará un comando de cuadro de diálogo.
Espacio de nombres: Microsoft.WebMatrix.Extensibility
Ensamblado: Microsoft.WebMatrix.Extensibility (en Microsoft.WebMatrix.Extensibility.dll)
Sintaxis
'Declaración
Function ShowDialog ( _
title As String, _
message As String, _
dialogSize As DialogSize, _
buttons As MessageBoxButton, _
defaultButton As MessageBoxResult, _
buttonCommands As ICommand() _
) As Nullable(Of Boolean)
'Uso
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>
Parámetros
title
Tipo: System.StringTítulo del cuadro de diálogo.
message
Tipo: System.StringContenido del mensaje.
dialogSize
Tipo: Microsoft.WebMatrix.Extensibility.DialogSizeResolución del cuadro de diálogo.
buttons
Tipo: System.Windows.MessageBoxButtonBotones del cuadro.
defaultButton
Tipo: System.Windows.MessageBoxResultBotón predeterminado.
buttonCommands
Tipo: array<System.Windows.Input.ICommand[]Comandos de botón.
Valor devuelto
Tipo: System.Nullable<Boolean>
true si el comando mostrará un cuadro de diálogo; en caso contrario, false.