IContentType is defined in the Telligent.Evolution.Extensibility.Content.Version1 namespace of Telligent.Evolution.Core.dll
Definition
interface IContentType : IPlugin
{
Guid[] ApplicationTypes { get; }
Guid ContentTypeId { get; }
string ContentTypeName { get; }
void AttachChangeEvents(IContentStateChanges stateChanges);
IContent Get(Guid contentId);
}
Properties
| Name | Type | Description | Default | Options |
|---|
| ApplicationTypes | Guid[] | The ApplicationTypeIds to which this type of content can be added. | | |
| ContentTypeId | Guid | A Guid that represents the type of the content. This value is set by the developer. | | |
| ContentTypeName | string | The name of the content type. | | |
Methods
void AttachChangeEvents(IContentStateChanges stateChanges);
Provides an object with privileged access for updating the platform’s internal records of the content. StateChanges should be saved as a class variable and used to update the internal records whenever the content is updated or deleted.
Parameters
IContent Get(Guid contentId);
Used to retrieve content of the plugin’s ContentTypeId with the provided ContentId.
Parameters
| Name | Type | Description | Required | Default | Options |
|---|
| contentId | Guid | Content Id | Required | | |
Return Type
IContent