共用方式為


MessageBoxServiceBase.Show 方法

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

語法

'宣告
Public MustOverride Function Show ( _
    messageBoxText As String, _
    caption As String, _
    button As MessageBoxButton, _
    icon As MessageBoxImage, _
    defaultResult As MessageBoxResult, _
    options As MessageBoxOptions _
) As MessageBoxResult
public abstract MessageBoxResult Show(
    string messageBoxText,
    string caption,
    MessageBoxButton button,
    MessageBoxImage icon,
    MessageBoxResult defaultResult,
    MessageBoxOptions options
)

參數

傳回值

型別:System.Windows.MessageBoxResult
傳回 MessageBoxResult

實作

IMessageBoxService.Show(String, String, MessageBoxButton, MessageBoxImage, MessageBoxResult, MessageBoxOptions)

.NET Framework 安全性

請參閱

參考

MessageBoxServiceBase 類別

Microsoft.TeamFoundation.MVVM 命名空間