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

ClientFactory.CreateHttpClient Method

Definition

Overloads

CreateHttpClient(String, HttpMessageHandler)
CreateHttpClient(String, ICredentials)

CreateHttpClient(String, HttpMessageHandler)

public virtual System.Net.Http.HttpClient CreateHttpClient (string endpoint, System.Net.Http.HttpMessageHandler effectiveHandler);
abstract member CreateHttpClient : string * System.Net.Http.HttpMessageHandler -> System.Net.Http.HttpClient
override this.CreateHttpClient : string * System.Net.Http.HttpMessageHandler -> System.Net.Http.HttpClient
Public Overridable Function CreateHttpClient (endpoint As String, effectiveHandler As HttpMessageHandler) As HttpClient

Parameters

endpoint
String
effectiveHandler
HttpMessageHandler

Returns

Implements

Applies to

CreateHttpClient(String, ICredentials)

public virtual System.Net.Http.HttpClient CreateHttpClient (string endpoint, System.Net.ICredentials credentials);
abstract member CreateHttpClient : string * System.Net.ICredentials -> System.Net.Http.HttpClient
override this.CreateHttpClient : string * System.Net.ICredentials -> System.Net.Http.HttpClient
Public Overridable Function CreateHttpClient (endpoint As String, credentials As ICredentials) As HttpClient

Parameters

endpoint
String
credentials
ICredentials

Returns

Implements

Applies to