共用方式為


PackageUtility 類別

此 API 不符合 CLS 標準。 

繼承階層架構

System.Object
  Microsoft.VisualStudio.Modeling.Shell.PackageUtility

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

語法

'宣告
<CLSCompliantAttribute(False)> _
Public NotInheritable Class PackageUtility
[CLSCompliantAttribute(false)]
public static class PackageUtility

方法

  名稱 說明
公用方法靜態成員 ShowError(IServiceProvider, String) 若要顯示在命令介面內的錯誤訊息的 helper 方法。這應該用而不是 MessageBox.Show()。
公用方法靜態成員 ShowError(IServiceProvider, String, String) 若要顯示在命令介面內的錯誤訊息的 helper 方法。這應該用而不是 MessageBox.Show()。
公用方法靜態成員 ShowMessageBox(IServiceProvider, String) 若要顯示訊息方塊中的,命令介面內的 helper 方法。若要顯示只有 [確定] 按鈕的預設值。
公用方法靜態成員 ShowMessageBox(IServiceProvider, String, OLEMSGBUTTON, OLEMSGDEFBUTTON, OLEMSGICON) 若要顯示訊息方塊中的,命令介面內的 helper 方法。
公用方法靜態成員 ShowMessageBox(IServiceProvider, String, String, OLEMSGBUTTON, OLEMSGDEFBUTTON, OLEMSGICON) 若要顯示訊息方塊中的,命令介面內的 helper 方法。

回頁首

執行緒安全

這個型別的任何 Public static (在 Visual Basic 中為 Shared) 成員都具備執行緒安全。不保證任何執行個體成員是安全執行緒。

請參閱

參考

Microsoft.VisualStudio.Modeling.Shell 命名空間