StandardToolWindows 类

定义 GUID 标识符,它们对应于在设计环境中提供的标准工具窗口集。

**命名空间:**System.ComponentModel.Design
**程序集:**System(在 system.dll 中)

语法

声明
Public Class StandardToolWindows
用法
Dim instance As StandardToolWindows
public class StandardToolWindows
public ref class StandardToolWindows
public class StandardToolWindows
public class StandardToolWindows

备注

这些 GUID 可用于访问在设计时环境中提供的标准工具窗口。

提示

应用于此类的 HostProtectionAttribute 属性 (Attribute) 具有以下 Resources 属性 (Property) 值:SharedStateHostProtectionAttribute 不影响桌面应用程序(这些应用程序通常通过双击图标、键入命令或在浏览器中输入 URL 来启动)。有关更多信息,请参见 HostProtectionAttribute 类或 SQL Server 编程和宿主保护属性

示例

下面的代码示例演示如何使用 StandardToolWindows 显示标准工具窗口。此代码示例摘自为 IUIService 接口提供的一个更大的示例。

Dim UIservice As IUIService = CType(Me.GetService( _
    GetType(System.Windows.Forms.Design.IUIService)), IUIService)
If Not (UIservice Is Nothing) Then
    UIservice.ShowToolWindow(StandardToolWindows.TaskList)
End If
IUIService UIservice = (IUIService)this.GetService( 
    typeof( System.Windows.Forms.Design.IUIService ) );
if( UIservice != null )            
    UIservice.ShowToolWindow(StandardToolWindows.TaskList);
IUIService^ UIservice = dynamic_cast<IUIService^>(this->GetService( System::Windows::Forms::Design::IUIService::typeid ));
if ( UIservice != nullptr )
      UIservice->ShowToolWindow( StandardToolWindows::TaskList );
IUIService uiService = (IUIService)this.GetService(System.Windows.
    Forms.Design.IUIService.class.ToType());
if (uiService != null) {
    uiService.ShowToolWindow(StandardToolWindows.TaskList);
}

.NET Framework 安全性

继承层次结构

System.Object
  System.ComponentModel.Design.StandardToolWindows

线程安全

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

平台

Windows 98、Windows 2000 SP4、Windows Millennium Edition、Windows Server 2003、Windows XP Media Center Edition、Windows XP Professional x64 Edition、Windows XP SP2、Windows XP Starter Edition

.NET Framework 并不是对每个平台的所有版本都提供支持。有关受支持版本的列表,请参见系统要求

版本信息

.NET Framework

受以下版本支持:2.0、1.1、1.0

请参见

参考

StandardToolWindows 成员
System.ComponentModel.Design 命名空间
IUIService