UtilWebIsUrlStatusCodeSucessfulAsync(Uri) Method
Asynchronously sends a GET request to the specified url
and returns a value that indicates whether the http status code of the server response was successful.
A response is considered successful if http status code is in range of 200-299.
To determine whether the specified url is available / online, call
IsUrlAvailable(String) function.
Namespace: DevCase.Core.Networking.CommonAssembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
public static Task<bool> IsUrlStatusCodeSucessfulAsync(
Uri url
)
Public Shared Function IsUrlStatusCodeSucessfulAsync (
url As Uri
) As Task(Of Boolean)
Dim url As Uri
Dim returnValue As Task(Of Boolean)
returnValue = UtilWeb.IsUrlStatusCodeSucessfulAsync(url)
public:
static Task<bool>^ IsUrlStatusCodeSucessfulAsync(
Uri^ url
)
static member IsUrlStatusCodeSucessfulAsync :
url : Uri -> Task<bool>
No code example is currently available or this language may not be supported.
- url Uri
-
The url.
TaskBoolean if the http status code of the server response was successful,
otherwise.
A response is considered successful if http status code is in range of 200-299.