Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

Package.GetDialogPage Method

Gets the requested dialog page.

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

protected DialogPage GetDialogPage(
	Type dialogPageType
)

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.

ExceptionCondition
ArgumentNullException

dialogPageType is null.

ArgumentException
  • dialogPageType is not derived from DialogPage.

  • dialogPageType does not have a public constructor.

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.

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft