HttpContentHeaders.ContentLength 属性

定义

获取或设置 HTTP 响应上的 Content-Length 内容标头值。Gets or sets the value of the Content-Length content header on an HTTP response.

public:
 property Nullable<long> ContentLength { Nullable<long> get(); void set(Nullable<long> value); };
public long? ContentLength { get; set; }
member this.ContentLength : Nullable<int64> with get, set
Public Property ContentLength As Nullable(Of Long)

属性值

Nullable<Int64>

HTTP 响应上的 Content-Length 内容标头值。The value of the Content-Length content header on an HTTP response.

适用于