Search Results for

    Show / Hide Table of Contents

    Interface IComment

    Public interface to define a comment.

    Inherited Members
    IDataModel<IComment>.Requested
    IDataModel<IComment>.HasValue(string)
    IDataModel<IComment>.HasChanged(string)
    IDataModel<IComment>.IsPropertyAvailable(Expression<Func<IComment, object>>)
    IDataModel<IComment>.ArePropertiesAvailable(params Expression<Func<IComment, object>>[])
    IDataModel<IComment>.EnsureProperties(params Expression<Func<IComment, object>>[])
    IDataModel<IComment>.EnsurePropertiesAsync(params Expression<Func<IComment, object>>[])
    IDataModel<IComment>.ExecuteRequestAsync(ApiRequest)
    IDataModel<IComment>.ExecuteRequest(ApiRequest)
    IDataModel<IComment>.ExecuteRequestBatchAsync(ApiRequest)
    IDataModel<IComment>.ExecuteRequestBatch(ApiRequest)
    IDataModel<IComment>.ExecuteRequestBatchAsync(Batch, ApiRequest)
    IDataModel<IComment>.ExecuteRequestBatch(Batch, ApiRequest)
    IDataModelParent.Parent
    IDataModelWithContext.PnPContext
    IDataModelGet<IComment>.GetBatchAsync(Batch, params Expression<Func<IComment, object>>[])
    IDataModelGet<IComment>.GetAsync(params Expression<Func<IComment, object>>[])
    IDataModelLoad<IComment>.LoadBatchAsync(Batch, params Expression<Func<IComment, object>>[])
    IDataModelLoad<IComment>.LoadAsync(params Expression<Func<IComment, object>>[])
    IDataModelDelete.DeleteBatchAsync()
    IDataModelDelete.DeleteBatchAsync(Batch)
    IDataModelDelete.DeleteAsync()
    IDataModelDelete.DeleteBatch()
    IDataModelDelete.DeleteBatch(Batch)
    IDataModelDelete.Delete()
    Namespace: PnP.Core.Model.SharePoint
    Assembly: PnP.Core.dll
    Syntax
    public interface IComment : IDataModel<IComment>, IDataModelParent, IDataModelWithContext, ISupportModules<IComment>, IDataModelGet<IComment>, IDataModelLoad<IComment>, IDataModelDelete, IQueryableDataModel

    Properties

    All

    A special property used to add an asterisk to a $select statement

    Declaration
    object All { get; }
    Property Value
    object

    Author

    Comment author.

    Declaration
    ISharePointSharingPrincipal Author { get; }
    Property Value
    ISharePointSharingPrincipal

    CreatedDate

    Comment creation date.

    Declaration
    DateTime CreatedDate { get; }
    Property Value
    DateTime

    Id

    Comment id.

    Declaration
    string Id { get; }
    Property Value
    string

    IsLikedByUser

    Flag that indicates whether the user in the current context liked the comment.

    Declaration
    bool IsLikedByUser { get; }
    Property Value
    bool

    IsReply

    Comment is a reply to another comment.

    Declaration
    bool IsReply { get; }
    Property Value
    bool

    ItemId

    Comment item id.

    Declaration
    int ItemId { get; }
    Property Value
    int

    LikeCount

    Number of likes for the comment.

    Declaration
    int LikeCount { get; }
    Property Value
    int

    LikedBy

    List of users who have liked the comment. Implements IQueryable<T>.
    See Requesting model collections and IQueryable performance considerations to learn more.

    Declaration
    ICommentLikeUserEntityCollection LikedBy { get; }
    Property Value
    ICommentLikeUserEntityCollection

    ListId

    Comment list id.

    Declaration
    Guid ListId { get; }
    Property Value
    Guid

    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.

    Declaration
    ICommentLikeUserEntityCollection Mentions { get; }
    Property Value
    ICommentLikeUserEntityCollection

    ParentId

    Comment parent ID (0 if not a reply).

    Declaration
    string ParentId { get; }
    Property Value
    string

    RelativeCreatedDate

    Gets a string that represents the relative value of the comment's creation date.

    Declaration
    string RelativeCreatedDate { get; }
    Property Value
    string

    Replies

    Replies to the comment.

    Declaration
    ICommentCollection Replies { get; }
    Property Value
    ICommentCollection

    ReplyCount

    Number of replies to the comment.

    Declaration
    int ReplyCount { get; }
    Property Value
    int

    Text

    Comment text.

    Declaration
    string Text { get; set; }
    Property Value
    string

    Methods

    Like()

    Likes the comment for the user in the current context.

    Declaration
    void Like()

    LikeAsync()

    Likes the comment for the user in the current context.

    Declaration
    Task LikeAsync()
    Returns
    Task

    Unlike()

    Unlikes the comment for the user in the current context.

    Declaration
    void Unlike()

    UnlikeAsync()

    Unlikes the comment for the user in the current context.

    Declaration
    Task UnlikeAsync()
    Returns
    Task

    Extension Methods

    DataModelGetExtensions.GetBatchAsync<TModel>(IDataModelGet<TModel>, Batch, params Expression<Func<TModel, object>>[])
    DataModelGetExtensions.GetBatchAsync<TModel>(IDataModelGet<TModel>, params Expression<Func<TModel, object>>[])
    DataModelGetExtensions.GetBatch<TModel>(IDataModelGet<TModel>, Batch, params Expression<Func<TModel, object>>[])
    DataModelGetExtensions.GetBatch<TModel>(IDataModelGet<TModel>, params Expression<Func<TModel, object>>[])
    DataModelGetExtensions.Get<TModel>(IDataModelGet<TModel>, params Expression<Func<TModel, object>>[])
    DataModelLoadExtensions.LoadBatchAsync<TModel>(IDataModelLoad<TModel>, Batch, params Expression<Func<TModel, object>>[])
    DataModelLoadExtensions.LoadBatchAsync<TModel>(IDataModelLoad<TModel>, params Expression<Func<TModel, object>>[])
    DataModelLoadExtensions.LoadBatch<TModel>(IDataModelLoad<TModel>, Batch, params Expression<Func<TModel, object>>[])
    DataModelLoadExtensions.LoadBatch<TModel>(IDataModelLoad<TModel>, params Expression<Func<TModel, object>>[])
    DataModelLoadExtensions.Load<TModel>(IDataModelLoad<TModel>, params Expression<Func<TModel, object>>[])
    DataModelLoadExtensions.QueryProperties<TModel>(IDataModelLoad<TModel>, params Expression<Func<TModel, object>>[])
    RequestModuleExtensions.WithHeaders<TModel>(ISupportModules<TModel>, Dictionary<string, string>, Action<Dictionary<string, string>>)
    RequestModuleExtensions.WithResponseHeaders<TModel>(ISupportModules<TModel>, Action<Dictionary<string, string>>)
    Back to top PnP Core SDK
    Generated by DocFX with Material UI
    spacer