SendChunked Property

HttpWebRequest.SendChunked Property

 

Gets or sets a value that indicates whether to send data in segments to the Internet resource.

Namespace:   System.Net
Assembly:  System (in System.dll)

member SendChunked : bool with get, set

Property Value

Type: System.Boolean

true to send data to the Internet resource in segments; otherwise, false. The default value is false.

Exception Condition
InvalidOperationException

The request has been started by calling the GetRequestStream, BeginGetRequestStream, GetResponse, or BeginGetResponse method.

When SendChunked is true, the request sends data to the Internet resource in segments. The Internet resource must support receiving chunked data.

Changing the SendChunked property after the request has been started by calling the GetRequestStream, BeginGetRequestStream, GetResponse, or BeginGetResponse method throws an InvalidOperationException.

The following code example sets the SendChunked property to true so that data can be sent in segments to the Internet resource.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 1.1
Return to top
Show:
© 2016 Microsoft