Dela via


FormRecognizerClient Constructors

Definition

Overloads

FormRecognizerClient(DelegatingHandler[])

Initializes a new instance of the FormRecognizerClient class.

FormRecognizerClient(ServiceClientCredentials, DelegatingHandler[])

Initializes a new instance of the FormRecognizerClient class.

FormRecognizerClient(HttpClient, Boolean)

Initializes a new instance of the FormRecognizerClient class.

FormRecognizerClient(HttpClientHandler, DelegatingHandler[])

Initializes a new instance of the FormRecognizerClient class.

FormRecognizerClient(ServiceClientCredentials, HttpClient, Boolean)

Initializes a new instance of the FormRecognizerClient class.

FormRecognizerClient(ServiceClientCredentials, HttpClientHandler, DelegatingHandler[])

Initializes a new instance of the FormRecognizerClient class.

FormRecognizerClient(DelegatingHandler[])

Initializes a new instance of the FormRecognizerClient class.

protected FormRecognizerClient (params System.Net.Http.DelegatingHandler[] handlers);
new Microsoft.Azure.CognitiveServices.FormRecognizer.FormRecognizerClient : System.Net.Http.DelegatingHandler[] -> Microsoft.Azure.CognitiveServices.FormRecognizer.FormRecognizerClient
Protected Sub New (ParamArray handlers As DelegatingHandler())

Parameters

handlers
DelegatingHandler[]

Optional. The delegating handlers to add to the http client pipeline.

Applies to

FormRecognizerClient(ServiceClientCredentials, DelegatingHandler[])

Initializes a new instance of the FormRecognizerClient class.

public FormRecognizerClient (Microsoft.Rest.ServiceClientCredentials credentials, params System.Net.Http.DelegatingHandler[] handlers);
new Microsoft.Azure.CognitiveServices.FormRecognizer.FormRecognizerClient : Microsoft.Rest.ServiceClientCredentials * System.Net.Http.DelegatingHandler[] -> Microsoft.Azure.CognitiveServices.FormRecognizer.FormRecognizerClient
Public Sub New (credentials As ServiceClientCredentials, ParamArray handlers As DelegatingHandler())

Parameters

credentials
ServiceClientCredentials

Required. Subscription credentials which uniquely identify client subscription.

handlers
DelegatingHandler[]

Optional. The delegating handlers to add to the http client pipeline.

Exceptions

Thrown when a required parameter is null

Applies to

FormRecognizerClient(HttpClient, Boolean)

Initializes a new instance of the FormRecognizerClient class.

protected FormRecognizerClient (System.Net.Http.HttpClient httpClient, bool disposeHttpClient);
new Microsoft.Azure.CognitiveServices.FormRecognizer.FormRecognizerClient : System.Net.Http.HttpClient * bool -> Microsoft.Azure.CognitiveServices.FormRecognizer.FormRecognizerClient
Protected Sub New (httpClient As HttpClient, disposeHttpClient As Boolean)

Parameters

httpClient
HttpClient

HttpClient to be used

disposeHttpClient
Boolean

True: will dispose the provided httpClient on calling FormRecognizerClient.Dispose(). False: will not dispose provided httpClient

Applies to

FormRecognizerClient(HttpClientHandler, DelegatingHandler[])

Initializes a new instance of the FormRecognizerClient class.

protected FormRecognizerClient (System.Net.Http.HttpClientHandler rootHandler, params System.Net.Http.DelegatingHandler[] handlers);
new Microsoft.Azure.CognitiveServices.FormRecognizer.FormRecognizerClient : System.Net.Http.HttpClientHandler * System.Net.Http.DelegatingHandler[] -> Microsoft.Azure.CognitiveServices.FormRecognizer.FormRecognizerClient
Protected Sub New (rootHandler As HttpClientHandler, ParamArray handlers As DelegatingHandler())

Parameters

rootHandler
HttpClientHandler

Optional. The http client handler used to handle http transport.

handlers
DelegatingHandler[]

Optional. The delegating handlers to add to the http client pipeline.

Applies to

FormRecognizerClient(ServiceClientCredentials, HttpClient, Boolean)

Initializes a new instance of the FormRecognizerClient class.

public FormRecognizerClient (Microsoft.Rest.ServiceClientCredentials credentials, System.Net.Http.HttpClient httpClient, bool disposeHttpClient);
new Microsoft.Azure.CognitiveServices.FormRecognizer.FormRecognizerClient : Microsoft.Rest.ServiceClientCredentials * System.Net.Http.HttpClient * bool -> Microsoft.Azure.CognitiveServices.FormRecognizer.FormRecognizerClient
Public Sub New (credentials As ServiceClientCredentials, httpClient As HttpClient, disposeHttpClient As Boolean)

Parameters

credentials
ServiceClientCredentials

Required. Subscription credentials which uniquely identify client subscription.

httpClient
HttpClient

HttpClient to be used

disposeHttpClient
Boolean

True: will dispose the provided httpClient on calling FormRecognizerClient.Dispose(). False: will not dispose provided httpClient

Exceptions

Thrown when a required parameter is null

Applies to

FormRecognizerClient(ServiceClientCredentials, HttpClientHandler, DelegatingHandler[])

Initializes a new instance of the FormRecognizerClient class.

public FormRecognizerClient (Microsoft.Rest.ServiceClientCredentials credentials, System.Net.Http.HttpClientHandler rootHandler, params System.Net.Http.DelegatingHandler[] handlers);
new Microsoft.Azure.CognitiveServices.FormRecognizer.FormRecognizerClient : Microsoft.Rest.ServiceClientCredentials * System.Net.Http.HttpClientHandler * System.Net.Http.DelegatingHandler[] -> Microsoft.Azure.CognitiveServices.FormRecognizer.FormRecognizerClient
Public Sub New (credentials As ServiceClientCredentials, rootHandler As HttpClientHandler, ParamArray handlers As DelegatingHandler())

Parameters

credentials
ServiceClientCredentials

Required. Subscription credentials which uniquely identify client subscription.

rootHandler
HttpClientHandler

Optional. The http client handler used to handle http transport.

handlers
DelegatingHandler[]

Optional. The delegating handlers to add to the http client pipeline.

Exceptions

Thrown when a required parameter is null

Applies to