IVsToolboxPageChooser.GetPreferredToolboxPage Method
Gets the GUID of the preferred toolbox page.
Namespace: Microsoft.VisualStudio.Shell.Interop
Assembly: Microsoft.VisualStudio.Shell.Interop.10.0 (in Microsoft.VisualStudio.Shell.Interop.10.0.dll)
Syntax
'Declaration
Function GetPreferredToolboxPage ( _
<OutAttribute> ByRef pguidPage As Guid _
) As Integer
int GetPreferredToolboxPage(
out Guid pguidPage
)
int GetPreferredToolboxPage(
[OutAttribute] Guid% pguidPage
)
abstract GetPreferredToolboxPage :
pguidPage:Guid byref -> int
function GetPreferredToolboxPage(
pguidPage : Guid
) : int
Parameters
- pguidPage
Type: System.Guid%
[out] The GUID of the toolbox page.
Return Value
Type: System.Int32
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.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.