Share via


FormRecognizerClient.StartRecognizeContentAsync Method

Definition

Recognizes layout elements from one or more passed-in forms.

public virtual System.Threading.Tasks.Task<Azure.AI.FormRecognizer.Models.RecognizeContentOperation> StartRecognizeContentAsync (System.IO.Stream form, Azure.AI.FormRecognizer.RecognizeContentOptions recognizeContentOptions = default, System.Threading.CancellationToken cancellationToken = default);
abstract member StartRecognizeContentAsync : System.IO.Stream * Azure.AI.FormRecognizer.RecognizeContentOptions * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.AI.FormRecognizer.Models.RecognizeContentOperation>
override this.StartRecognizeContentAsync : System.IO.Stream * Azure.AI.FormRecognizer.RecognizeContentOptions * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.AI.FormRecognizer.Models.RecognizeContentOperation>
Public Overridable Function StartRecognizeContentAsync (form As Stream, Optional recognizeContentOptions As RecognizeContentOptions = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of RecognizeContentOperation)

Parameters

form
Stream

The stream containing one or more forms to recognize elements from.

recognizeContentOptions
RecognizeContentOptions

A set of options available for configuring the recognize request. For example, specify the content type of the form, the language of the form, and which pages in a multi-page document to analyze.

cancellationToken
CancellationToken

A CancellationToken controlling the request lifetime.

Returns

A RecognizeContentOperation to wait on this long-running operation. Its Value upon successful completion will contain layout elements extracted from the form.

Applies to