FileWebRequest.GetResponseAsync Method
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Returns a response to a file system request as an asynchronous operation.
public:
override System::Threading::Tasks::Task<System::Net::WebResponse ^> ^ GetResponseAsync();
public override System.Threading.Tasks.Task<System.Net.WebResponse> GetResponseAsync();
override this.GetResponseAsync : unit -> System.Threading.Tasks.Task<System.Net.WebResponse>
Public Overrides Function GetResponseAsync () As Task(Of WebResponse)
The task object representing the asynchronous operation.
The stream is already in use by a previous call to BeginGetResponse(AsyncCallback, Object).
The FileWebRequest was aborted.
Poznámka
In the case of asynchronous requests, the client application is responsible for implementing its own time-out mechanism.
This method stores in the task it returns all non-usage exceptions that the method's synchronous counterpart can throw. If an exception is stored into the returned task, that exception will be thrown when the task is awaited. Usage exceptions, such as ArgumentException, are still thrown synchronously. For the stored exceptions, see the exceptions thrown by GetResponse().
Produkt | Verzie |
---|---|
.NET | Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10 |
.NET Standard | 2.1 |
Pripomienky k produktu .NET
.NET je open-source projekt. Ak chcete poskytnúť pripomienky, vyberte prepojenie: