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

本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。

适用于