ContentstackCollection

View as Markdown

ContentstackCollection

ContentstackCollection<T> holds the items that a list request returns, in the Contentstack.Core.Models namespace. It implements IEnumerable<T>, so you can loop over it with foreach or query it with LINQ. Use this class to

  • read the entries, assets, taxonomies, or terms a list request returns
  • read the total number of matches when you request a count

Query.Find<T>, Query.FindOne<T>, AssetLibrary.FetchAll, Taxonomy.Find<T>, and TermQuery.Find<T> return a Task<ContentstackCollection<T>>. T is the model type you pass to the call, such as Entry or your own class.

NameTypeDescription
Items IEnumerable<T>

The items the request returned.

Count int

Total number of matches. Filled only when you request a count.

Skip int

Always 0 in a response from the Content Delivery API.

Limit int

Always 0 in a response from the Content Delivery API.