Share via


GetResponse Method

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

Returns the FTP server response.

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

Syntax

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

Return Value

Type: System.Net. . :: . .WebResponse
A WebResponse reference that contains an FtpWebResponse instance. This object contains the FTP server's response to the request.

Remarks

To access the FTP-specific properties, you must cast the WebResponse object returned by this method to FtpWebResponse.

If the Proxy property is set, either directly or in a configuration file, communications with the FTP server are made through the proxy.

If a WebException is thrown, use the Response and Status properties of the exception to determine the response from the server.

.NET Framework Security

See Also

Reference

FtpWebRequest Class

System.Net Namespace