|
||
|
API examples for newer versions Please visit the latest API Examples documentation to view API examples for newer versions of Kentico. |
The following example assigns a web part container to a site.
private bool AddWebPartContainerToSite() // Get the web part container WebPartContainerInfo container = WebPartContainerInfoProvider.GetWebPartContainerInfo("MyNewContainer"); if (container != null) |
The following example removes a container from a site.
private bool RemoveWebPartContainerFromSite() // Get the web part container WebPartContainerInfo removeContainer = WebPartContainerInfoProvider.GetWebPartContainerInfo("MyNewContainer"); if (removeContainer != null) // Delete the binding |