共用方式為


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>

參數

傳回值

型別:System.Nullable<Boolean>
如果命令會顯示對話方塊,為 true,否則為 false。

請參閱

參考

IWebMatrixHost 介面

ShowDialog 多載

Microsoft.WebMatrix.Extensibility 命名空間