你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

DocumentIntelligenceClient.GetAnalyzeBatchResultsAsync Method

Definition

Overloads

GetAnalyzeBatchResultsAsync(String, RequestContext)

[Protocol Method] List batch document analysis results.

GetAnalyzeBatchResultsAsync(String, CancellationToken)

List batch document analysis results.

GetAnalyzeBatchResultsAsync(String, RequestContext)

Source:
DocumentIntelligenceClient.cs

[Protocol Method] List batch document analysis results.

public virtual Azure.AsyncPageable<BinaryData> GetAnalyzeBatchResultsAsync (string modelId, Azure.RequestContext context);
abstract member GetAnalyzeBatchResultsAsync : string * Azure.RequestContext -> Azure.AsyncPageable<BinaryData>
override this.GetAnalyzeBatchResultsAsync : string * Azure.RequestContext -> Azure.AsyncPageable<BinaryData>
Public Overridable Function GetAnalyzeBatchResultsAsync (modelId As String, context As RequestContext) As AsyncPageable(Of BinaryData)

Parameters

modelId
String

Unique document model name.

context
RequestContext

The request context, which can override default behaviors of the client pipeline on a per-call basis.

Returns

The AsyncPageable<T> from the service containing a list of BinaryData objects. Details of the body schema for each item in the collection are in the Remarks section below.

Exceptions

modelId is null.

modelId is an empty string, and was expected to be non-empty.

Service returned a non-success status code.

Examples

This sample shows how to call GetAnalyzeBatchResultsAsync and parse the result.

Uri endpoint = new Uri("<endpoint>");
AzureKeyCredential credential = new AzureKeyCredential("<key>");
DocumentIntelligenceClient client = new DocumentIntelligenceClient(endpoint, credential);

await foreach (BinaryData item in client.GetAnalyzeBatchResultsAsync("prebuilt-invoice", null))
{
    JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement;
    Console.WriteLine(result.GetProperty("status").ToString());
    Console.WriteLine(result.GetProperty("createdDateTime").ToString());
    Console.WriteLine(result.GetProperty("lastUpdatedDateTime").ToString());
}

Applies to

GetAnalyzeBatchResultsAsync(String, CancellationToken)

Source:
DocumentIntelligenceClient.cs

List batch document analysis results.

public virtual Azure.AsyncPageable<Azure.AI.DocumentIntelligence.AnalyzeBatchOperationDetails> GetAnalyzeBatchResultsAsync (string modelId, System.Threading.CancellationToken cancellationToken = default);
abstract member GetAnalyzeBatchResultsAsync : string * System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.AI.DocumentIntelligence.AnalyzeBatchOperationDetails>
override this.GetAnalyzeBatchResultsAsync : string * System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.AI.DocumentIntelligence.AnalyzeBatchOperationDetails>
Public Overridable Function GetAnalyzeBatchResultsAsync (modelId As String, Optional cancellationToken As CancellationToken = Nothing) As AsyncPageable(Of AnalyzeBatchOperationDetails)

Parameters

modelId
String

Unique document model name.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

modelId is null.

modelId is an empty string, and was expected to be non-empty.

Examples

This sample shows how to call GetAnalyzeBatchResultsAsync.

Uri endpoint = new Uri("<endpoint>");
AzureKeyCredential credential = new AzureKeyCredential("<key>");
DocumentIntelligenceClient client = new DocumentIntelligenceClient(endpoint, credential);

await foreach (AnalyzeBatchOperationDetails item in client.GetAnalyzeBatchResultsAsync("prebuilt-invoice"))
{
}

Applies to