DocumentsClientListDocumentsAsync Method

Lists all Document resources in a Corpus.

Definition

Namespace: GenerativeAI.Clients
Assembly: GenerativeAI (in GenerativeAI.dll) Version: 2.0.2+aa51399cad6d90cc71158d589a6268608b3c1893
C#
public Task<ListDocumentsResponse?> ListDocumentsAsync(
	string parent,
	int? pageSize = null,
	string? pageToken = null
)

Parameters

parent  String
The name of the Corpus containing Document resources. Required.
pageSize  NullableInt32  (Optional)
The maximum number of Document resources to return (per page). Optional.
pageToken  String  (Optional)
A page token, received from a previous ListDocumentsAsync(String, NullableInt32, String) call. Optional.

Return Value

TaskListDocumentsResponse
A list of Document resources.

See Also