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) 显示在 shell 中的错误消息的帮助器方法。应将而不是 MessageBox.Show();
公共方法静态成员 ShowError(IServiceProvider, String, String) 显示在 shell 中的错误消息的帮助器方法。应将而不是 MessageBox.Show();
公共方法静态成员 ShowMessageBox(IServiceProvider, String) 显示在 shell 中的消息框的帮助器方法。为仅显示 " 确定 " 按钮的默认值。
公共方法静态成员 ShowMessageBox(IServiceProvider, String, OLEMSGBUTTON, OLEMSGDEFBUTTON, OLEMSGICON) 显示在 shell 中的消息框的帮助器方法。
公共方法静态成员 ShowMessageBox(IServiceProvider, String, String, OLEMSGBUTTON, OLEMSGDEFBUTTON, OLEMSGICON) 显示在 shell 中的消息框的帮助器方法。

页首

线程安全

此类型的任何公共 static(在 Visual Basic 中为 Shared) 成员都是线程安全的。但不保证所有实例成员都是线程安全的。

请参见

参考

Microsoft.VisualStudio.Modeling.Shell 命名空间