Table of Contents

Class RetrievePagesOfContentTypesExtensions

Namespace
Kentico.Content.Web.Mvc
Assembly
Kentico.Content.Web.Mvc.dll
public static class RetrievePagesOfContentTypesExtensions
Inheritance
object
RetrievePagesOfContentTypesExtensions

Methods

RetrievePagesOfContentTypes<TResult>(IContentRetriever, IEnumerable<string>, RetrievePagesOfContentTypesParameters, Action<RetrievePagesOfContentTypesQueryParameters>, RetrievalCacheSettings, CancellationToken)

Retrieves web pages of content types specified by contentTypeNames.

public static Task<IEnumerable<TResult>> RetrievePagesOfContentTypes<TResult>(this IContentRetriever contentRetriever, IEnumerable<string> contentTypeNames, RetrievePagesOfContentTypesParameters parameters, Action<RetrievePagesOfContentTypesQueryParameters> additionalQueryConfiguration, RetrievalCacheSettings cacheSettings, CancellationToken cancellationToken = default)

Parameters

contentRetriever IContentRetriever

Content retriever.

contentTypeNames IEnumerable<string>

Names of the content types defining retrieved results.

parameters RetrievePagesOfContentTypesParameters

Parameters used to modify retrieval.

additionalQueryConfiguration Action<RetrievePagesOfContentTypesQueryParameters>

Action to additionally modify query during retrieval.

cacheSettings RetrievalCacheSettings

Cache setting used to modify caching during retrieval.

cancellationToken CancellationToken

Cancellation token.

Returns

Task<IEnumerable<TResult>>

Type Parameters

TResult

Model of the final retrieved results.

RetrievePagesOfContentTypes<TResult>(IContentRetriever, IEnumerable<string>, RetrievePagesOfContentTypesParameters, CancellationToken)

Retrieves web pages of content types specified by contentTypeNames.

public static Task<IEnumerable<TResult>> RetrievePagesOfContentTypes<TResult>(this IContentRetriever contentRetriever, IEnumerable<string> contentTypeNames, RetrievePagesOfContentTypesParameters parameters, CancellationToken cancellationToken = default)

Parameters

contentRetriever IContentRetriever

Content retriever.

contentTypeNames IEnumerable<string>

Names of the content types defining retrieved results.

parameters RetrievePagesOfContentTypesParameters

Parameters used to modify retrieval.

cancellationToken CancellationToken

Cancellation token.

Returns

Task<IEnumerable<TResult>>

Type Parameters

TResult

Model of the final retrieved results.

RetrievePagesOfContentTypes<TResult>(IContentRetriever, IEnumerable<string>, CancellationToken)

Retrieves web pages of content types specified by contentTypeNames.

public static Task<IEnumerable<TResult>> RetrievePagesOfContentTypes<TResult>(this IContentRetriever contentRetriever, IEnumerable<string> contentTypeNames, CancellationToken cancellationToken = default)

Parameters

contentRetriever IContentRetriever

Content retriever.

contentTypeNames IEnumerable<string>

Names of the content types defining retrieved results.

cancellationToken CancellationToken

Cancellation token.

Returns

Task<IEnumerable<TResult>>

Type Parameters

TResult

Model of the final retrieved results.