Query PageData by ID

Native API

To find a specific PageData by ID, you use the GetPageDataList method:

To find the PageData, you use the GetPageDataList method and filter based on the Id property. If the PageData does not exist, the method returns null. Use the following code sample:

You can also use the GetPageData method in the following way:

NOTE: If there is no PageData with the specified ID, the GetPageData method throws an exception of typeItemNotFoundException.

Want to learn more?

Sign up for our free beginner training. Boost your credentials through advanced courses and certification.
Register for Sitefinity training and certification.

Was this article helpful?