Share via


SendChunked Property

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

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

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

Syntax

'Declaration
Public Property SendChunked As Boolean
public bool SendChunked { get; set; }
public:
property bool SendChunked {
    bool get ();
    void set (bool value);
}
member SendChunked : bool with get, set
function get SendChunked () : boolean
function set SendChunked (value : boolean)

Property Value

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

Remarks

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.

.NET Framework Security

See Also

Reference

HttpWebRequest Class

System.Net Namespace