IMPORTANT: This version of Sitefinity CMS is out of support and the respective product documentation is no longer maintained and can be outdated. Use the version selector to view a supported product version.
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:
Back To Top
To submit feedback, please update your cookie settings and allow the usage of Functional cookies.
Your feedback about this content is important