Sets the portlet ID associated with this Presentation Template.
ContentException will be thrown when Store is called on the template. A portlet can only be associated with one Presentation Template or content item at a time. If the portlet ID is already associated with another Presentation Template or content item, an InvalidOperationException will be thrown when Store is called on the template. The ID of a portlet can be retrieved using methods in Plumtree.Remote.PRC.IPortletManager or Plumtree.Remote.PRC.IPortletTemplateManager. The association will not be persisted until Store is called. | Exception Type | Condition |
|---|---|
| InvalidOperationException | The template has been deleted. |
| ArgumentException | The portlet ID less than or equal to 0. |
IPresentationTemplate Interface | Plumtree.Remote.PRC.Content.PresentationTemplate Namespace | AddAssociatedPortletID