Interface IComment
- Namespace
- PnP.Core.Model.SharePoint
- Assembly
- PnP.Core.dll
Public interface to define a comment.
public interface IComment : IDataModel<IComment>, IDataModelParent, IDataModelWithContext, ISupportModules<IComment>, IDataModelGet<IComment>, IDataModelLoad<IComment>, IDataModelDelete, IQueryableDataModel
- Inherited Members
- Extension Methods
Properties
All
A special property used to add an asterisk to a $select statement
object All { get; }
Property Value
Author
Comment author.
ISharePointSharingPrincipal Author { get; }
Property Value
CreatedDate
Comment creation date.
DateTime CreatedDate { get; }
Property Value
Id
Comment id.
string Id { get; }
Property Value
IsLikedByUser
Flag that indicates whether the user in the current context liked the comment.
bool IsLikedByUser { get; }
Property Value
IsReply
Comment is a reply to another comment.
bool IsReply { get; }
Property Value
ItemId
Comment item id.
int ItemId { get; }
Property Value
LikeCount
Number of likes for the comment.
int LikeCount { get; }
Property Value
LikedBy
List of users who have liked the comment.
Implements IQueryable<T>.
See Requesting model collections
and IQueryable performance considerations to learn more.
ICommentLikeUserEntityCollection LikedBy { get; }
Property Value
ListId
Comment list id.
Guid ListId { get; }
Property Value
Mentions
List of users who are at mentioned in this comment.
Implements IQueryable<T>.
See Requesting model collections
and IQueryable performance considerations to learn more.
ICommentLikeUserEntityCollection Mentions { get; }
Property Value
ParentId
Comment parent ID (0 if not a reply).
string ParentId { get; }
Property Value
RelativeCreatedDate
Gets a string that represents the relative value of the comment's creation date.
string RelativeCreatedDate { get; }
Property Value
Replies
Replies to the comment.
ICommentCollection Replies { get; }
Property Value
ReplyCount
Number of replies to the comment.
int ReplyCount { get; }
Property Value
Text
Comment text.
string Text { get; set; }
Property Value
Methods
Like()
Likes the comment for the user in the current context.
void Like()
LikeAsync()
Likes the comment for the user in the current context.
Task LikeAsync()
Returns
Unlike()
Unlikes the comment for the user in the current context.
void Unlike()
UnlikeAsync()
Unlikes the comment for the user in the current context.
Task UnlikeAsync()