NSUrlSessionHandler 類別

定義

public class NSUrlSessionHandler : System.Net.Http.HttpMessageHandler
type NSUrlSessionHandler = class
    inherit HttpMessageHandler
繼承
NSUrlSessionHandler

建構函式

名稱 Description
NSUrlSessionHandler()
NSUrlSessionHandler(NSUrlSessionConfiguration)

屬性

名稱 Description
AllowAutoRedirect
AllowsCellularAccess
AutomaticDecompression
BypassBackgroundSessionCheck
CertificateChainPolicy

取得或設定自訂鏈政策,用於驗證憑證鏈。

CheckCertificateRevocationList

取得或設定一個值,指示該憑證是否與憑證授權中心的撤銷清單進行檢查。

ClientCertificateOptions
ClientCertificates

取得與伺服器請求相關的安全憑證集合。

CookieContainer
Credentials
DefaultProxyCredentials
DisableCaching
MaxAutomaticRedirections
MaxConnectionsPerServer
MaxInputInMemory

傳送請求內容時,最多可載入記憶體的內容量。

MaxResponseHeadersLength
PreAuthenticate
Properties
Proxy
ServerCertificateCustomValidationCallback
SslProtocols
SupportsAutomaticDecompression
SupportsProxy
SupportsRedirectConfiguration
TrustOverrideForUrl
UseCookies

啟用或停用 Cookie 的使用。

UseProxy

方法

名稱 Description
Dispose(Boolean)

釋放未管理的資源, HttpMessageHandler 並可選擇性地處置這些受管理資源。

SendAsync(HttpRequestMessage, CancellationToken)

適用於