Share via


ToolPane.CreateZoneDropdown method (WebPartPage)

NOTE: This API is now obsolete.

Creates a System.Web.UI.WebControls.DropDownList control filled with the list of zones on the page to which the user can add Web Parts.

Namespace:  Microsoft.SharePoint.WebPartPages
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'Declaration
<ObsoleteAttribute("This function is deprecated. Use CreateZoneDropdown(SPWebPartManager webPartManager) instead.",  _
    False)> _
Public Shared Function CreateZoneDropdown ( _
    webPartPage As WebPartPage _
) As DropDownList
'Usage
Dim webPartPage As WebPartPage
Dim returnValue As DropDownList

returnValue = ToolPane.CreateZoneDropdown(webPartPage)
[ObsoleteAttribute("This function is deprecated. Use CreateZoneDropdown(SPWebPartManager webPartManager) instead.", 
    false)]
public static DropDownList CreateZoneDropdown(
    WebPartPage webPartPage
)

Parameters

Return value

Type: System.Web.UI.WebControls.DropDownList
A System.Web.UI.WebControls.DropDownList control filled with the list of zones on the page to which the user can add Web Parts.

See also

Reference

ToolPane class

ToolPane members

CreateZoneDropdown overload

Microsoft.SharePoint.WebPartPages namespace