語言

HttpURLConnection.InstanceFollowRedirects 屬性

定義

回傳此HttpURLConnectioninstanceFollowRedirects欄位的值。 -或- 設定 HTTP 重定向(回應代碼為 3xx 的請求)是否應自動接續此 HttpURLConnection 實例。

public virtual bool InstanceFollowRedirects { [Android.Runtime.Register("getInstanceFollowRedirects", "()Z", "GetGetInstanceFollowRedirectsHandler")] get; [Android.Runtime.Register("setInstanceFollowRedirects", "(Z)V", "GetSetInstanceFollowRedirects_ZHandler")] set; }
[<get: Android.Runtime.Register("getInstanceFollowRedirects", "()Z", "GetGetInstanceFollowRedirectsHandler")>]
[<set: Android.Runtime.Register("setInstanceFollowRedirects", "(Z)V", "GetSetInstanceFollowRedirects_ZHandler")>]
member this.InstanceFollowRedirects : bool with get, set

屬性值

這個HttpURLConnectioninstanceFollowRedirects場的價值。

屬性

備註

財產取得者文件:

回傳此HttpURLConnectioninstanceFollowRedirects欄位的值。

在 1.3 版本中加入。

的 java.net.HttpURLConnection.getInstanceFollowRedirects()Java 檔。

屬性設定文件:

設定 HTTP 重定向(響應代碼為 3xx 的請求)是否應自動接續此 HttpURLConnection 實例。

預設值來自 followRedirects,而 followRedirects 預設為 true。

在 1.3 版本中加入。

的 java.net.HttpURLConnection.setInstanceFollowRedirects(boolean)Java 檔。

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

適用於