다음을 통해 공유


PackageUtility Class

This API is not CLS-compliant. 

Inheritance Hierarchy

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

Namespace:  Microsoft.VisualStudio.Modeling.Shell
Assembly:  Microsoft.VisualStudio.Modeling.Sdk.Shell.12.0 (in Microsoft.VisualStudio.Modeling.Sdk.Shell.12.0.dll)

Syntax

'Declaration
<CLSCompliantAttribute(False)> _
Public NotInheritable Class PackageUtility
[CLSCompliantAttribute(false)]
public static class PackageUtility
[CLSCompliantAttribute(false)]
public ref class PackageUtility abstract sealed
[<AbstractClass>]
[<Sealed>]
[<CLSCompliantAttribute(false)>]
type PackageUtility =  class end
public final class PackageUtility

Methods

  Name Description
Public methodStatic member ShowError(IServiceProvider, String) Helper method to show an error message within the shell. This should be used instead of MessageBox.Show();
Public methodStatic member ShowError(IServiceProvider, String, String) Helper method to show an error message within the shell. This should be used instead of MessageBox.Show();
Public methodStatic member ShowMessageBox(IServiceProvider, String) Helper method to show a message box within the shell. Defaults to showing only an OK button.
Public methodStatic member ShowMessageBox(IServiceProvider, String, OLEMSGBUTTON, OLEMSGDEFBUTTON, OLEMSGICON) Helper method to show a message box within the shell.
Public methodStatic member ShowMessageBox(IServiceProvider, String, String, OLEMSGBUTTON, OLEMSGDEFBUTTON, OLEMSGICON) Helper method to show a message box within the shell.

Top

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

Microsoft.VisualStudio.Modeling.Shell Namespace