Plumtree EDK (Enterprise Web Development Kit) 5.4.0 |

# IContentItemManager.PreviewContentItem Method

Previews the `IContentItem` and copies it to a preview target set internally by Content Server.

void PreviewContentItem(
IContentItem contentItem
);

#### Parameters

contentItem
  The content item to be previewed; cannot be `null`.

#### Remarks

The preview URL can be retrieved via `IContentItem.PreviewURL` property. An `InvalidOperationException` will be thrown if the `IDataEntryTemplate` of the item does not have an attached `IPresentationTemplate`. A `ContentException` will be thrown if the attached `IPresentationTemplate` contains invalid template text.

Refer to the Administrator Guide for Content Server for more details about previewing content items.

#### Exceptions

Exception Type | Condition
--- | ---
ContentSecurityException | The user does not have permission to preview the item.
InvalidOperationException | The content item's `IDataEntryTemplate` does not have an attached `IPresentationTemplate`.
ContentException | The method call resulted in a Content Server exception.
SoapException | There was a communication problem during the execution of the remote method call.

#### See Also

IContentItemManager Interface | Plumtree.Remote.PRC.Content.Item Namespace