System.Web Namespace HttpWorkerRequest Class
Adds a Content-Length HTTP header to the response.
[ VB ]
<ComVisible ( False ) >
Overridable Public Sub SendCalculatedContentLength ( _
ByVal contentLength As Integer _
)
[ C# ]
[ ComVisible ( false ) ]
public virtual void SendCalculatedContentLength (
int contentLength
);
[ C++ ]
[ ComVisible ( false ) ]
public: virtual void SendCalculatedContentLength (
int contentLength
);
[ JScript ]
public ComVisible ( false )
function SendCalculatedContentLength (
contentLength : int
);
- contentLength
- The length of the response, in bytes.
When the content length is not explicitly set, this method allows HttpWorkerRequest to add a Content-Length HTTP header to the response.
HttpWorkerRequest Members HttpRuntime Class