Package.GetDialogPage 方法

获取请求的对话框页。

命名空间:  Microsoft.VisualStudio.Shell
程序集:  Microsoft.VisualStudio.Shell.11.0(在 Microsoft.VisualStudio.Shell.11.0.dll 中)

语法

声明
Protected Function GetDialogPage ( _
    dialogPageType As Type _
) As DialogPage
protected DialogPage GetDialogPage(
    Type dialogPageType
)

参数

  • dialogPageType
    类型:System.Type
    对话框页的类型检索的。

返回值

类型:Microsoft.VisualStudio.Shell.DialogPage
请求的页的实例。

异常

异常 条件
ArgumentNullException

dialogPageType 为 nullnull 引用(在 Visual Basic 中为 Nothing)。

ArgumentException
  • dialogPageType 不从 DialogPage 派生。

  • dialogPageType 没有公共构造函数。

备注

此方法返回请求的对话框页。 缓存对话框页,使它们的状态只有一个实例。 ,如果不在缓存中,页动态创建。

.NET Framework 安全性

请参见

参考

Package 类

Microsoft.VisualStudio.Shell 命名空间