- callback
- An AsyncCallback delegate that references the method to invoke when the operation is complete.
- state
- A user-defined object that contains information about the operation. This object is passed to the callback delegate when the operation completes.
An IAsyncResult instance that indicates the status of the operation.
You must complete the asynchronous operation by calling the FtpWebRequest.EndGetResponse(IAsyncResult) method. Typically, FtpWebRequest.EndGetResponse(IAsyncResult) is called by the method referenced by callback. To determine the state of the operation, check the properties in the IAsyncResult object returned by the FtpWebRequest.BeginGetResponse(AsyncCallback, object) method.
If the FtpWebRequest.Proxy property is set, either directly or in a configuration file, communications with the FTP server are made through the specified proxy.
FtpWebRequest.BeginGetResponse(AsyncCallback, object) does not block while waiting for the response from the server. To block, call the FtpWebRequest.GetResponse method in place of FtpWebRequest.BeginGetResponse(AsyncCallback, object).
For more information about using the asynchronous programming model, see [<topic://cpovrAsynchronousProgrammingOverview>].
This member outputs trace information when you enable network tracing in your application. For more information, see [<topic://conUsingNetworkTracing>].
If a System.Net.WebException is thrown, use the WebException.Response and WebException.Status properties of the exception to determine the response from the server.