WebRequest.GetResponseAsync Metodo

Definizione

Quando ne viene eseguito l'override in una classe discendente, restituisce una risposta a una richiesta Internet come operazione asincrona.

public:
 virtual System::Threading::Tasks::Task<System::Net::WebResponse ^> ^ GetResponseAsync();
public virtual System.Threading.Tasks.Task<System.Net.WebResponse> GetResponseAsync ();
abstract member GetResponseAsync : unit -> System.Threading.Tasks.Task<System.Net.WebResponse>
override this.GetResponseAsync : unit -> System.Threading.Tasks.Task<System.Net.WebResponse>
Public Overridable Function GetResponseAsync () As Task(Of WebResponse)

Restituisce

Task<WebResponse>

Oggetto dell'attività che rappresenta l'operazione asincrona.

Commenti

Questa operazione non verrà bloccata. L'oggetto restituito Task<TResult> verrà completato dopo la disponibilità di una risposta a una richiesta Internet.

Si applica a