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)
Available in Sandboxed Solutions: No
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
webPartPage
Type: Microsoft.SharePoint.WebPartPages.WebPartPageThe page to which the user wants to add Web Parts.
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.