CachingClientListCachedContentsAsync Method
Namespace: GenerativeAI.ClientsAssembly: GenerativeAI (in GenerativeAI.dll) Version: 2.0.2+aa51399cad6d90cc71158d589a6268608b3c1893
public Task<ListCachedContentsResponse> ListCachedContentsAsync(
int? pageSize = null,
string? pageToken = null,
CancellationToken cancellationToken = default
)
- 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.
TaskListCachedContentsResponseA task representing the asynchronous operation, containing a
ListCachedContentsResponse with the list of fetched
CachedContent resources.