This interface provides support for tagging content and defines the methods needed to secure tags.
ITaggableContentType is defined in the Telligent.Evolution.Extensibility.Content.Version1 namespace of Telligent.Evolution.Core.dll
Definition
interface ITaggableContentType : IContentType, IPlugin
{
bool CanAddTags(Guid contentId, int userId);
bool CanRemoveTags(Guid contentId, int userId);
}
Methods
bool CanAddTags(Guid contentId, int userId);
Returns whether the user can add tags to the given content.
Parameters
| Name | Type | Description | Required | Default | Options |
|---|
| contentId | Guid | Content Id | Required | | |
| userId | int | User Id | Required | | |
Return Type
bool
bool CanRemoveTags(Guid contentId, int userId);
Returns whether the user can remove tags from the given content.
Parameters
| Name | Type | Description | Required | Default | Options |
|---|
| contentId | Guid | Content Id | Required | | |
| userId | int | User Id | Required | | |
Return Type
bool