HttpClient.TryDeleteAsync(Uri) HttpClient.TryDeleteAsync(Uri) HttpClient.TryDeleteAsync(Uri) HttpClient.TryDeleteAsync(Uri) HttpClient.TryDeleteAsync(Uri) Method

Definition

Send a DELETE request to the specified Uri as an asynchronous operation. For programming guidance for the HttpClient class, and code examples, see the HttpClient conceptual topic.

public : IAsyncOperationWithProgress<HttpRequestResult, HttpProgress> TryDeleteAsync(Uri uri)
IAsyncOperationWithProgress<HttpRequestResult, HttpProgress> TryDeleteAsync(Uri uri) const;
public IAsyncOperationWithProgress<HttpRequestResult, HttpProgress> TryDeleteAsync(Uri uri)
Public Function TryDeleteAsync(uri As Uri) As IAsyncOperationWithProgress(Of HttpRequestResultHttpProgress)
Windows.Web.Http.HttpClient.tryDeleteAsync(uri).done( /* Your success and error handlers */ );

Parameters

uri
Uri Uri Uri

The Uri the request is sent to.

Returns

Additional features and requirements

Device family
Windows 10, version 1903 (introduced v10.0.18362.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v8)

Remarks

This operation will not throw an exception on network errors. Instead you should examine the HttpRequestResult to learn about the original HTTP request, the resulting HTTP response (if any) and error (if any). This operation will throw when the operation is canceled.

This operation will not block. The returned IAsyncOperationWithProgress (of HttpRequestResult and HttpProgress) completes after the whole response (including content) is read.

See also