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

NameTypeDescriptionDefaultOptions
ApplicationTypesGuid[]The ApplicationTypeIds to which this type of content can be added.
ContentTypeIdGuidA Guid that represents the type of the content. This value is set by the developer.
ContentTypeNamestringThe 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

NameTypeDescriptionRequiredDefaultOptions
stateChangesIContentStateChangesState ChangesRequired

IContent Get(Guid contentId);

Used to retrieve content of the plugin’s ContentTypeId with the provided ContentId.

Parameters

NameTypeDescriptionRequiredDefaultOptions
contentIdGuidContent IdRequired

Return Type

IContent