Share via


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)

Syntax

'Declaration
Public ReadOnly Property InputStream As Stream
public Stream InputStream { get; }
public:
property Stream^ InputStream {
    Stream^ get ();
}
member InputStream : Stream with get
function get InputStream () : Stream

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.

Remarks

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

Note

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.

.NET Framework Security

See Also

Reference

HttpListenerRequest Class

System.Net Namespace