Share via


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)

Syntax

'Declaration
Public Overrides Function GetRequestStream As Stream
public override Stream GetRequestStream()
public:
virtual Stream^ GetRequestStream() override
abstract GetRequestStream : unit -> Stream 
override GetRequestStream : unit -> Stream 
public override function GetRequestStream() : Stream

Return Value

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

Remarks

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.

.NET Framework Security

See Also

Reference

FtpWebRequest Class

System.Net Namespace