InputStream Property

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

Gets a stream that contains the body data sent by the client.

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

public Stream InputStream { get; }

Property Value

Type: System.IO..::..Stream
A readable Stream object that contains the bytes sent by the client in the body of the request. This property returns Null if no data is sent with the request.

If the client transmits data (for example, using the HTTP POST method), the stream returned by this method contains that data.

NoteNote

Closing the request does not close the stream returned by this property. When you no longer need the stream, you should close it by calling the Close method.

Show: