GetRequestStream Method

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

Retrieves the stream used to upload data to an FTP server.

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

public override Stream GetRequestStream()

Return Value

Type: System.IO..::..Stream
A writable Stream instance used to store data to be sent to the server by the current request.

Set the request properties before calling the GetRequestStream method. After writing the data to the stream, you must close the stream prior to sending the request.

Show: