Package.GetDialogPage Method

Gets the requested dialog page.

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

Syntax

声明
Protected Function GetDialogPage ( _
    dialogPageType As Type _
) As DialogPage
用法
Dim dialogPageType As Type
Dim returnValue As DialogPage

returnValue = Me.GetDialogPage(dialogPageType)
protected DialogPage GetDialogPage(
    Type dialogPageType
)
protected:
DialogPage^ GetDialogPage(
    Type^ dialogPageType
)
member GetDialogPage : 
        dialogPageType:Type -> DialogPage 
protected function GetDialogPage(
    dialogPageType : Type
) : DialogPage

Parameters

  • dialogPageType
    Type: System.Type
    The type of dialog page to retrieve.

Return Value

Type: Microsoft.VisualStudio.Shell.DialogPage
An instance of the requested page.

Exceptions

Exception Condition
ArgumentNullException

dialogPageType is nulla null reference (Nothing in Visual Basic).

ArgumentException
  • dialogPageType is not derived from DialogPage.

  • dialogPageType does not have a public constructor.

Remarks

This method returns the requested dialog page. Dialog pages are cached so that only a single instance of their state is preserved. The page is dynamically created if it is not in the cache.

.NET Framework Security

See Also

Reference

Package Class

Package Members

Microsoft.VisualStudio.Shell Namespace