共用方式為


IMessageBoxService.Show 方法

命名空間:  Microsoft.TeamFoundation.MVVM
組件:  Microsoft.TeamFoundation.Controls (在 Microsoft.TeamFoundation.Controls.dll 中)

語法

'宣告
Function Show ( _
    messageBoxText As String, _
    caption As String, _
    buttons As MessageBoxButton, _
    icon As MessageBoxImage, _
    defaultResult As MessageBoxResult, _
    options As MessageBoxOptions _
) As MessageBoxResult
MessageBoxResult Show(
    string messageBoxText,
    string caption,
    MessageBoxButton buttons,
    MessageBoxImage icon,
    MessageBoxResult defaultResult,
    MessageBoxOptions options
)

參數

傳回值

型別:System.Windows.MessageBoxResult
傳回 MessageBoxResult

.NET Framework 安全性

請參閱

參考

IMessageBoxService 介面

Microsoft.TeamFoundation.MVVM 命名空間