Plugin that enables programmatic conversion between content types
IContentConverter
is defined in the Telligent.Evolution.Extensibility.ContentConversion.Version1
namespace of Telligent.Evolution.Platform.dll
Definition
interface IContentConverter : IPlugin { Guid SourceContentTypeId { get; } Guid TargetContentTypeId { get; } Guid Convert(Guid sourceContentId, Guid targetApplicationId, IDictionary options); }
Properties
Name | Type | Description | Default | Options |
---|---|---|---|---|
SourceContentTypeId | Guid | Content Type Id to convert from | ||
TargetContentTypeId | Guid | Content Type Id to convert to |
Methods
Guid Convert(Guid sourceContentId, Guid targetApplicationId, IDictionary options);
Implements conversion from SourceContentTypeId to TargetContentTypeId for a given piece of content. Content ID of newly converted content.
Parameters
Name | Type | Description | Required | Default | Options |
---|---|---|---|---|---|
sourceContentId | Guid | Source content to convert | Required | ||
targetApplicationId | Guid | Target application for resulting new content | Required | ||
options | IDictionary | Optional extra parameters | Required |
Return Type
Guid