Content created on the site must implement this interface for the social services to support it.
Properties
Name | Access | Type | Description |
---|---|---|---|
CommentContentTypeId | Read | Guid | Comment Content Type Id |
CommentId | Read, Write | Guid | Comment Id |
CommentTypeId | Read, Write | Nullable of Guid | Comment Type Id |
Content | Read | Content | Content |
ContentId | Read, Write | Guid | A Guid uniquely identifying the content. |
ContentTypeId | Read, Write | Guid | A Guid identifying the type of content. All content of the same type (i.e. wiki page) will have the same value here. |
CreatedDate | Read, Write | DateTime | The date the content was created. |
Errors | Read | IList of Error | Errors |
ExtendedAttributes | Read, Write | ApiList of ExtendedAttribute | Extended Attributes |
IPAddress | Read, Write | String | I P Address |
IsApproved | Read, Write | Boolean | Is Approved |
IsDeleted | Read | Boolean | Is Deleted |
IsFeatured | Read, Write | Boolean | Is Featured |
NoVotes | Read | Int32 | No Votes |
ParentCommentId | Read, Write | Nullable of Guid | Parent Comment Id |
ReplyCount | Read, Write | Int32 | Reply Count |
Score | Read | Int32 | Score |
SortOrder | Read, Write | Int32 | Sort Order |
TotalVotes | Read | Int32 | Total Votes |
UpdatedDate | Read, Write | DateTime | Updated Date |
UpdatedUserId | Read, Write | Int32 | Updated User Id |
Url | Read, Write | String | A Url to the content on the site. |
User | Read | User | User |
UserId | Read, Write | Int32 | User Id |
Warnings | Read | IList of Warning | Warnings |
YesVotes | Read | Int32 | Yes Votes |
Methods
Body
Body Overload 1
Velocity
#set($stringResponse = $comment.Body())
JavaScript
var stringResponse = comment.Body();
Body Overload 2
Velocity
#set($stringResponse = $comment.Body($target))
JavaScript
var stringResponse = comment.Body(target);
Parameters
Name | Type | Description | Required | Default | Options |
---|---|---|---|---|---|
target | String | Target | Required |
Returns
String
HasErrors
Velocity
#set($booleanResponse = $comment.HasErrors())
JavaScript
var booleanResponse = comment.HasErrors();
Returns
Boolean
HasWarnings
Velocity
#set($booleanResponse = $comment.HasWarnings())
JavaScript
var booleanResponse = comment.HasWarnings();
Returns
Boolean
HasWarningsOrErrors
Velocity
#set($booleanResponse = $comment.HasWarningsOrErrors())
JavaScript
var booleanResponse = comment.HasWarningsOrErrors();
Returns
Boolean
ThrowErrors
Velocity
$comment.ThrowErrors()
JavaScript
comment.ThrowErrors();