Sitefinity CMS enables you to query for specific comments.
The following sample demonstrates how to query for a specific comment by its Key:
In the code above, you:
If the method does not find any comments matching the filter criteria, null will be returned.
The following sample demonstrates how to query all blog post comments by the Id of the live version of the blog post item:
You can also use CommentFilter to filter comments by different criteria, each one represented as a list:
In the following example, you filter by more than one criteria:
Sign up for our free beginner training. Boost your credentials through advanced courses and certification. Register for Sitefinity training and certification.
To submit feedback, please update your cookie settings and allow the usage of Functional cookies.
Your feedback about this content is important