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。