NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

HttpWebRequest.TransferEncoding

Gets or sets the value of the Transfer-Encoding header.

[Visual Basic]
Public Property TransferEncoding As String
[C#]
public string TransferEncoding {get; set;}
[C++]
public: __property String* get_TransferEncoding();
public: __property void set_TransferEncoding(String*);
[JScript]
public function get TransferEncoding() : String;
public function set TransferEncoding(String);

Exceptions

Exception Type Condition
InvalidOperationException TransferEncoding is set when SendChunked is false.
ArgumentException System.Net.HttpWebRequest.TransferEndoding is set to the value "Chunked".

Remarks

You cannot set TransferEncoding without first setting SendChunked true. Clearing TransferEncoding by setting it to a null reference (in Visual Basic Nothing) has no effect the value of SendChunked.

See Also

HttpWebRequest Class | HttpWebRequest Members | System.Net Namespace