Freigeben über


IVsToolboxPageChooser.GetPreferredToolboxPage(Guid) Method

Definition

Gets the GUID of the preferred toolbox page.

public:
 int GetPreferredToolboxPage([Runtime::InteropServices::Out] Guid % pguidPage);
public int GetPreferredToolboxPage (out Guid pguidPage);
abstract member GetPreferredToolboxPage : Guid -> int
Public Function GetPreferredToolboxPage (ByRef pguidPage As Guid) As Integer

Parameters

pguidPage
Guid

[out] The GUID of the toolbox page.

Returns

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Remarks

The GUID returned by this method identifies the page to show by default in the "Choose Toolbox Items" dialog when the designer in question is active. The available pages are registered under the "ToolboxPages" key in the registry under the VS configuration.

Applies to