Share via


ComputerVisionClientContext class

Extends

Constructors

ComputerVisionClientContext(ServiceClientCredentials, string, ServiceClientOptions)

Initialiseert een nieuw exemplaar van de klasse ComputerVisionClientContext.

Eigenschappen

credentials
endpoint

Overgenomen methoden

sendOperationRequest(OperationArguments, OperationSpec, ServiceCallback<any>)

Verzend een HTTP-aanvraag die is ingevuld met behulp van de opgegeven OperationSpec.

sendRequest(RequestPrepareOptions | WebResourceLike)

Verzend de opgegeven httpRequest.

Constructordetails

ComputerVisionClientContext(ServiceClientCredentials, string, ServiceClientOptions)

Initialiseert een nieuw exemplaar van de klasse ComputerVisionClientContext.

new ComputerVisionClientContext(credentials: ServiceClientCredentials, endpoint: string, options?: ServiceClientOptions)

Parameters

credentials
ServiceClientCredentials

Abonnementsreferenties waarmee het clientabonnement uniek wordt geïdentificeerd.

endpoint

string

Ondersteunde Cognitive Services-eindpunten.

options
ServiceClientOptions

De parameteropties

Eigenschapdetails

credentials

credentials: ServiceClientCredentials

Waarde van eigenschap

endpoint

endpoint: string

Waarde van eigenschap

string

Details overgenomen methode

sendOperationRequest(OperationArguments, OperationSpec, ServiceCallback<any>)

Verzend een HTTP-aanvraag die is ingevuld met behulp van de opgegeven OperationSpec.

function sendOperationRequest(operationArguments: OperationArguments, operationSpec: OperationSpec, callback?: ServiceCallback<any>): Promise<RestResponse>

Parameters

operationArguments
OperationArguments

De argumenten waaruit de sjabloonwaarden van de HTTP-aanvraag worden ingevuld.

operationSpec
OperationSpec

De OperationSpec die moet worden gebruikt om de httpRequest in te vullen.

callback

ServiceCallback<any>

De callback om aan te roepen wanneer het antwoord wordt ontvangen.

Retouren

Promise<RestResponse>

Overgenomen van msRest.ServiceClient.sendOperationRequest

sendRequest(RequestPrepareOptions | WebResourceLike)

Verzend de opgegeven httpRequest.

function sendRequest(options: RequestPrepareOptions | WebResourceLike): Promise<HttpOperationResponse>

Parameters

Retouren

Overgenomen van msRest.ServiceClient.sendRequest