PredictionAPIClientContext class  
构造函数
| Prediction | 
	初始化 PredictionAPIClientContext 类的新实例。  | 
继承的方法
| send | 
	发送使用提供的 OperationSpec 填充的 HTTP 请求。  | 
| send | 
	发送提供的 httpRequest。  | 
构造函数详细信息
		PredictionAPIClientContext(ServiceClientCredentials, string, ServiceClientOptions)
	      
	初始化 PredictionAPIClientContext 类的新实例。
new PredictionAPIClientContext(credentials: ServiceClientCredentials, endpoint: string, options?: ServiceClientOptions)
				参数
- credentials
 - ServiceClientCredentials
 
唯一标识客户端订阅的订阅凭据。
- endpoint
 - 
				
string
 
支持的认知服务终结点。
- options
 - ServiceClientOptions
 
参数选项
属性详细信息
credentials
endpoint
endpoint: string
				属性值
string
继承的方法详细信息
		sendOperationRequest(OperationArguments, OperationSpec, ServiceCallback<any>)
	     
	发送使用提供的 OperationSpec 填充的 HTTP 请求。
function sendOperationRequest(operationArguments: OperationArguments, operationSpec: OperationSpec, callback?: ServiceCallback<any>): Promise<RestResponse>
				参数
- operationArguments
 - OperationArguments
 
将从中填充 HTTP 请求的模板化值的参数。
- operationSpec
 - OperationSpec
 
用于填充 httpRequest 的 OperationSpec。
- callback
 - 
				
ServiceCallback<any>
 
收到响应时要调用的回调。
返回
Promise<RestResponse>
继承自 msRest.ServiceClient.sendOperationRequest
		sendRequest(RequestPrepareOptions | WebResourceLike)
	     
	发送提供的 httpRequest。
function sendRequest(options: RequestPrepareOptions | WebResourceLike): Promise<HttpOperationResponse>
				参数
- options
 
返回
Promise<HttpOperationResponse>
继承自 msRest.ServiceClient.sendRequest