public virtual void EndDownloadFile(
IAsyncResult asyncResult
)Public Overridable Sub EndDownloadFile (
asyncResult As IAsyncResult
)public:
virtual void EndDownloadFile(
IAsyncResult^ asyncResult
)abstract EndDownloadFile :
asyncResult : IAsyncResult -> unit
override EndDownloadFile :
asyncResult : IAsyncResult -> unit Before calling BeginDownloadFile(String, String, AsyncCallback, Object), you need to create a callback method that implements the AsyncCallback delegate. This callback method executes in a separate thread and is called by the system after BeginDownloadFile(String, String, AsyncCallback, Object) returns. The callback method must accept the IAsyncResult returned by the BeginDownloadFile(String, String, AsyncCallback, Object) method as a parameter. This parameter may then be passed to the EndDownloadFile method to complete the operation.