Class ContentfulCollection<T>
Represents a collection of contentful resources with additional medadata regarding, skip, limit and total amount of items.
Inheritance
Inherited Members
Namespace:Contentful.Core.Models
Assembly:cs.temp.dll.dll
Syntax
public class ContentfulCollection<T> : IEnumerable<T>, IEnumerable
Type Parameters
Name | Description |
---|---|
T | The type to serialize the items array from the API response into. |
Properties
Errors
An enumerable of errors while deserializing. Will be null if no errors are present.
Declaration
public IEnumerable<ContentfulError> Errors { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<ContentfulError> |
IncludedAssets
The System.Collections.Generic.IEnumerable<T> of included referenced assets
Declaration
public IEnumerable<Asset> IncludedAssets { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<Asset> |
IncludedEntries
The System.Collections.Generic.IEnumerable<T> of included referenced entries
Declaration
public IEnumerable<Entry<dynamic>> IncludedEntries { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<Entry<System.Object>> |
Items
The System.Collections.Generic.IEnumerable<T> of items to be serialized from the API response.
Declaration
public IEnumerable<T> Items { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<T> |
Limit
The maximum number of items returned in this result.
Declaration
public int Limit { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
Skip
The number of items skipped in this resultset.
Declaration
public int Skip { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
SystemProperties
Common system managed metadata properties.
Declaration
public SystemProperties SystemProperties { get; set; }
Property Value
Type | Description |
---|---|
SystemProperties |
Total
The total number of items available.
Declaration
public int Total { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
Methods
GetEnumerator()
Returns an enumerator that iterates through the Items collection
Declaration
public IEnumerator<T> GetEnumerator()
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerator<T> |
Implements
Explicit Interface Implementations
IEnumerable.GetEnumerator()
Returns an enumerator that iterates through the Items collection
Declaration
IEnumerator IEnumerable.GetEnumerator()
Returns
Type | Description |
---|---|
System.Collections.IEnumerator |