다음을 통해 공유


Package.GetDialogPage(Type) Method

Definition

Gets the requested dialog page.

public:
 Microsoft::VisualStudio::Shell::DialogPage ^ GetDialogPage(Type ^ dialogPageType);
public Microsoft.VisualStudio.Shell.DialogPage GetDialogPage (Type dialogPageType);
member this.GetDialogPage : Type -> Microsoft.VisualStudio.Shell.DialogPage
Public Function GetDialogPage (dialogPageType As Type) As DialogPage

Parameters

dialogPageType
Type

The type of dialog page to retrieve.

Returns

An instance of the requested page.

Exceptions

dialogPageType is null.

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.

Applies to