共用方式為


VsShellUtilities Class

Provides static helper methods to use with the Visual Studio shell.

This API is not CLS-compliant. 

Namespace:  Microsoft.VisualStudio.Shell
Assemblies:   Microsoft.VisualStudio.Shell.9.0 (in Microsoft.VisualStudio.Shell.9.0.dll)
  Microsoft.VisualStudio.Shell.10.0 (in Microsoft.VisualStudio.Shell.10.0.dll)
  Microsoft.VisualStudio.Shell (in Microsoft.VisualStudio.Shell.dll)

Syntax

'宣告
<CLSCompliantAttribute(False)> _
Public NotInheritable Class VsShellUtilities
'用途
You do not need to declare an instance of a static class in order to access its members.
[CLSCompliantAttribute(false)]
public static class VsShellUtilities
[CLSCompliantAttribute(false)]
public ref class VsShellUtilities abstract sealed
[<AbstractClassAttribute>]
[<SealedAttribute>]
[<CLSCompliantAttribute(false)>]
type VsShellUtilities =  class end
public final class VsShellUtilities

Inheritance Hierarchy

System.Object
  Microsoft.VisualStudio.Shell.VsShellUtilities

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

VsShellUtilities Members

Microsoft.VisualStudio.Shell Namespace