FtpWebResponse.GetResponseStream Method ()
.NET Framework (current version)
Retrieves the stream that contains response data sent from an FTP server.
System (in System.dll)
Public Overrides Function GetResponseStream As Stream
A readable Stream instance that contains data returned with the response; otherwise, Null if no response data was returned by the server.
After reading the data, you must close the stream. The stream is automatically closed when you close the FtpWebResponse object that contains it.
An exception is thrown unless the request method is DownloadFile or ListDirectory.
The following code example demonstrates getting the response stream for a ListDirectory request.
No code example is currently available or this language may not be supported.
Return to top
Available since 2.0