HttpClientFactory.Create Method ([])
Creates a new instance of the HttpClient.
Namespace: System.Net.Http
Assembly: System.Net.Http.Formatting (in System.Net.Http.Formatting.dll)
Syntax
'Declaration
Public Shared Function Create ( _
ParamArray handlers As DelegatingHandler() _
) As HttpClient
'Usage
Dim handlers As DelegatingHandler()
Dim returnValue As HttpClient
returnValue = HttpClientFactory.Create(handlers)
public static HttpClient Create(
params DelegatingHandler[] handlers
)
public:
static HttpClient^ Create(
... array<DelegatingHandler^>^ handlers
)
static member Create :
handlers:DelegatingHandler[] -> HttpClient
public static function Create(
... handlers : DelegatingHandler[]
) : HttpClient
Parameters
handlers
Type: DelegatingHandler[]The list of HTTP handler that delegates the processing of HTTP response messages to another handler.
Return Value
Type: HttpClient
A new instance of the HttpClient.