AI OnAI Off
// Code below needs these namespaces
using EPiServer;
using EPiServer.Core;
using EPiServer.Filters;
...
PropertyCriteriaCollection criterias =
new PropertyCriteriaCollection();
PropertyCriteria criteria = new PropertyCriteria();
criteria.Condition = CompareCondition.Equal;
criteria.Type = PropertyDataType.PageType;
criteria.Value = "3";
criteria.Name = "PageTypeID";
criteria.Required = true;
criterias.Add(criteria);
PageDataCollection pages =
Global.EPDataFactory.FindPagesWithCriteria(
Global.EPConfig.StartPage, criterias);