共用方式為


PackageUtility.ShowMessageBox 方法 (IServiceProvider, String, String, OLEMSGBUTTON, OLEMSGDEFBUTTON, OLEMSGICON)

若要顯示訊息方塊中的,命令介面內的 helper 方法。

命名空間:  Microsoft.VisualStudio.Modeling.Shell
組件:  Microsoft.VisualStudio.Modeling.Sdk.Shell.11.0 (在 Microsoft.VisualStudio.Modeling.Sdk.Shell.11.0.dll 中)

語法

'宣告
Public Shared Function ShowMessageBox ( _
    serviceProvider As IServiceProvider, _
    messageText As String, _
    f1Keyword As String, _
    messageButtons As OLEMSGBUTTON, _
    defaultButton As OLEMSGDEFBUTTON, _
    messageIcon As OLEMSGICON _
) As DialogResult
public static DialogResult ShowMessageBox(
    IServiceProvider serviceProvider,
    string messageText,
    string f1Keyword,
    OLEMSGBUTTON messageButtons,
    OLEMSGDEFBUTTON defaultButton,
    OLEMSGICON messageIcon
)

參數

傳回值

型別:System.Windows.Forms.DialogResult

.NET Framework 安全性

請參閱

參考

PackageUtility 類別

ShowMessageBox 多載

Microsoft.VisualStudio.Modeling.Shell 命名空間