Retrieves an IContentItem in a folder by its name.
IContentItem; cannot be null. IContentItem The name cannot be null, empty, or longer than 255 characters. The string used for the name will be trimmed of leading and trailing whitespace and is case-insensitive during comparison. The IContentItem in the folder with the specified name otherwise null.
The specified name is the full name of the content item. The name will be trimmed of leading and trailing whitespace and is case-insensitive for comparison. The name does not support wildcards.
// Assuming a contentItem is persisted in containingFolder // Retrieve the item by name IContentItem sameContentItem = contentItemManager.GetContentItem(containingFolder, contentItem.Name); // sameContentItem.UUID is the same as contentItem.UUID
| Exception Type | Condition |
|---|---|
| ContentException | The method call resulted in a Content Server exception. |
| ContentSecurityException | The user does not have permission to access the folder. |
| SoapException | There was a communication problem during the execution of the remote method call. |
| InvalidOperationException | The folder has not been stored or has already been removed. |
| ArgumentException | The name is an empty string or longer than 255 characters. |
IContentItemManager Interface | Plumtree.Remote.PRC.Content.Item Namespace | IContentItemManager.GetContentItem Overload List