CachingClientListCachedContentsAsync Method

Asynchronously retrieves a list of CachedContent resources.

Definition

Namespace: GenerativeAI.Clients
Assembly: GenerativeAI (in GenerativeAI.dll) Version: 2.0.2+aa51399cad6d90cc71158d589a6268608b3c1893
C#
public Task<ListCachedContentsResponse> ListCachedContentsAsync(
	int? pageSize = null,
	string? pageToken = null,
	CancellationToken cancellationToken = default
)

Parameters

pageSize  NullableInt32  (Optional)
Optional parameter to specify the maximum number of CachedContent resources to return.
pageToken  String  (Optional)
Optional parameter for a pagination token, used to retrieve the next page of results.
cancellationToken  CancellationToken  (Optional)
Optional parameter to propagate notification that the operation should be canceled.

Return Value

TaskListCachedContentsResponse
A task representing the asynchronous operation, containing a ListCachedContentsResponse with the list of fetched CachedContent resources.

See Also