Метод IWebMatrixHost.ShowDialog (String, String, DialogSize, MessageBoxButton, MessageBoxResult, array<ICommand )
Приведенные ниже сведения относятся к верс.2
Указывает, отображает ли команда диалоговое окно.
Пространство имен: Microsoft.WebMatrix.Extensibility
Сборка: Microsoft.WebMatrix.Extensibility (в Microsoft.WebMatrix.Extensibility.dll)
Синтаксис
'Декларация
Function ShowDialog ( _
title As String, _
message As String, _
dialogSize As DialogSize, _
buttons As MessageBoxButton, _
defaultButton As MessageBoxResult, _
buttonCommands As ICommand() _
) As Nullable(Of Boolean)
'Применение
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>
Параметры
title
Тип: System.StringЗаголовок диалогового окна.
message
Тип: System.StringСодержимое сообщения.
dialogSize
Тип: Microsoft.WebMatrix.Extensibility.DialogSizeРазрешение диалогового окна.
buttons
Тип: System.Windows.MessageBoxButtonКнопки в окне.
defaultButton
Тип: System.Windows.MessageBoxResultКнопка по умолчанию.
buttonCommands
Тип: array<System.Windows.Input.ICommand[]Команды кнопок.
Возвращаемое значение
Тип: System.Nullable<Boolean>
Значение true, если команда отображает диалоговое окно. В противном случае — значение false.