HttpURLConnection.FixedContentLength 屬性

定義

使用固定長度串流模式時的固定內容長度。

[Android.Runtime.Register("fixedContentLength")]
protected int FixedContentLength { get; set; }
[<Android.Runtime.Register("fixedContentLength")>]
member this.FixedContentLength : int with get, set

屬性值

屬性

備註

使用固定長度串流模式時的固定內容長度。 值 表示 -1 輸出時會停用固定長度的串流模式。

<B>注意:<建議用 B>#fixedContentLengthLong 代替此欄位,因為它允許設定更長的內容長度。

已在1.5中新增。

Java 文件 java.net.HttpURLConnection.fixedContentLength

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

適用於