Returns the FTP server response.
Assembly: System (in System.dll)
or BeginGetResponse has already been called for this instance.
- or -
EnableSsl is set to true, but the server does not support this feature.
- or -
A Timeout was specified and the timeout has expired.
causes a control connection to be established, and might also create a data connection. blocks until the response is received. To prevent this, you can perform this operation asynchronously by calling the BeginGetResponse and EndGetResponse methods in place of .
If the Proxy property is set, either directly or in a configuration file, communications with the FTP server are made through the proxy.
This member outputs trace information when you enable network tracing in your application. For more information, see Network Tracing in the .NET Framework.
Multiple calls to return the same response object; the request is not reissued.
This method generates network traffic.
The following code example demonstrates copying a file to a request's data stream and sending a request to append data to a file to the server. The example calls to send the request and block until the response is returned by the server.
Windows Phone 8.1, Windows Phone 8, Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.