語言

ProxyOptions.AllProxiesFailedBehaviorDisallowDirect 欄位

定義

警告

This constant will be removed in the future version. Use Android.Net.Http.AllProxiesFailedBehavior enum directly instead of this field.

禁止直接通訊。

[Android.Runtime.Register("ALL_PROXIES_FAILED_BEHAVIOR_DISALLOW_DIRECT", ApiSince=37)]
[System.Obsolete("This constant will be removed in the future version. Use Android.Net.Http.AllProxiesFailedBehavior enum directly instead of this field.", true)]
public const Android.Net.Http.AllProxiesFailedBehavior AllProxiesFailedBehaviorDisallowDirect = 0;
[<Android.Runtime.Register("ALL_PROXIES_FAILED_BEHAVIOR_DISALLOW_DIRECT", ApiSince=37)>]
[<System.Obsolete("This constant will be removed in the future version. Use Android.Net.Http.AllProxiesFailedBehavior enum directly instead of this field.", true)>]
val mutable AllProxiesFailedBehaviorDisallowDirect : Android.Net.Http.AllProxiesFailedBehavior

欄位值

Value = 0
屬性

備註

禁止直接通訊。

這定義了失敗封閉行為:如果 ProxyOptions 中的所有代理都失敗,HttpEngine 不會回退到非代理連線上。

Android 參考資料。android.net.http.ProxyOptions.ALL_PROXIES_FAILED_BEHAVIOR_DISALLOW_DIRECT

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於