Språk

HttpURLConnection.FixedContentLength Property

Definition

The fixed content-length when using fixed-length streaming mode.

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

Property Value

The fixed output content length in bytes held in this field, or -1 if this field is not set.

Attributes

Remarks

The fixed content-length when using fixed-length streaming mode. A value of -1 means this field is not set; the FixedContentLengthLong field stores a separate value.

<B>NOTE:</B> #fixedContentLengthLong is recommended instead of this field, as it allows larger content lengths to be set.

Added in 1.5.

Java documentation for java.net.HttpURLConnection.fixedContentLength.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to