HttpConnection 建構函式
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
HttpConnection(Uri) |
初始化 HttpConnection 類別的新執行個體。 |
HttpConnection(HttpConnectionOptions, ILoggerFactory) |
初始化 HttpConnection 類別的新執行個體。 |
HttpConnection(Uri, HttpTransportType) |
初始化 HttpConnection 類別的新執行個體。 |
HttpConnection(Uri, HttpTransportType, ILoggerFactory) |
初始化 HttpConnection 類別的新執行個體。 |
HttpConnection(Uri)
初始化 HttpConnection 類別的新執行個體。
public:
HttpConnection(Uri ^ url);
public HttpConnection (Uri url);
new Microsoft.AspNetCore.Http.Connections.Client.HttpConnection : Uri -> Microsoft.AspNetCore.Http.Connections.Client.HttpConnection
Public Sub New (url As Uri)
參數
- url
- Uri
要連線的目的 URL。
適用於
HttpConnection(HttpConnectionOptions, ILoggerFactory)
初始化 HttpConnection 類別的新執行個體。
public:
HttpConnection(Microsoft::AspNetCore::Http::Connections::Client::HttpConnectionOptions ^ httpConnectionOptions, Microsoft::Extensions::Logging::ILoggerFactory ^ loggerFactory);
public HttpConnection (Microsoft.AspNetCore.Http.Connections.Client.HttpConnectionOptions httpConnectionOptions, Microsoft.Extensions.Logging.ILoggerFactory loggerFactory);
public HttpConnection (Microsoft.AspNetCore.Http.Connections.Client.HttpConnectionOptions httpConnectionOptions, Microsoft.Extensions.Logging.ILoggerFactory? loggerFactory);
new Microsoft.AspNetCore.Http.Connections.Client.HttpConnection : Microsoft.AspNetCore.Http.Connections.Client.HttpConnectionOptions * Microsoft.Extensions.Logging.ILoggerFactory -> Microsoft.AspNetCore.Http.Connections.Client.HttpConnection
Public Sub New (httpConnectionOptions As HttpConnectionOptions, loggerFactory As ILoggerFactory)
參數
- httpConnectionOptions
- HttpConnectionOptions
要使用的連線選項。
- loggerFactory
- ILoggerFactory
記錄器工廠。
適用於
HttpConnection(Uri, HttpTransportType)
初始化 HttpConnection 類別的新執行個體。
public:
HttpConnection(Uri ^ url, Microsoft::AspNetCore::Http::Connections::HttpTransportType transports);
public HttpConnection (Uri url, Microsoft.AspNetCore.Http.Connections.HttpTransportType transports);
new Microsoft.AspNetCore.Http.Connections.Client.HttpConnection : Uri * Microsoft.AspNetCore.Http.Connections.HttpTransportType -> Microsoft.AspNetCore.Http.Connections.Client.HttpConnection
Public Sub New (url As Uri, transports As HttpTransportType)
參數
- url
- Uri
要連線的目的 URL。
- transports
- HttpTransportType
結合一或多個 HttpTransportType 值的位元遮罩,指定用戶端應該使用哪些傳輸。
適用於
HttpConnection(Uri, HttpTransportType, ILoggerFactory)
初始化 HttpConnection 類別的新執行個體。
public:
HttpConnection(Uri ^ url, Microsoft::AspNetCore::Http::Connections::HttpTransportType transports, Microsoft::Extensions::Logging::ILoggerFactory ^ loggerFactory);
public HttpConnection (Uri url, Microsoft.AspNetCore.Http.Connections.HttpTransportType transports, Microsoft.Extensions.Logging.ILoggerFactory loggerFactory);
public HttpConnection (Uri url, Microsoft.AspNetCore.Http.Connections.HttpTransportType transports, Microsoft.Extensions.Logging.ILoggerFactory? loggerFactory);
new Microsoft.AspNetCore.Http.Connections.Client.HttpConnection : Uri * Microsoft.AspNetCore.Http.Connections.HttpTransportType * Microsoft.Extensions.Logging.ILoggerFactory -> Microsoft.AspNetCore.Http.Connections.Client.HttpConnection
Public Sub New (url As Uri, transports As HttpTransportType, loggerFactory As ILoggerFactory)
參數
- url
- Uri
要連線的目的 URL。
- transports
- HttpTransportType
結合一或多個 HttpTransportType 值的位元遮罩,指定用戶端應該使用哪些傳輸。
- loggerFactory
- ILoggerFactory
記錄器工廠。