UtilWebGetUrlStatusCodeAsync(Uri) Method
Asynchronously sends a GET request to the specified url and returns the http status code of the server response.
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<HttpStatusCode> GetUrlStatusCodeAsync(
Uri url
)
Public Shared Function GetUrlStatusCodeAsync (
url As Uri
) As Task(Of HttpStatusCode)
Dim url As Uri
Dim returnValue As Task(Of HttpStatusCode)
returnValue = UtilWeb.GetUrlStatusCodeAsync(url)
public:
static Task<HttpStatusCode>^ GetUrlStatusCodeAsync(
Uri^ url
)
static member GetUrlStatusCodeAsync :
url : Uri -> Task<HttpStatusCode>
No code example is currently available or this language may not be supported.
- url Uri
-
The url.
TaskHttpStatusCode
The resulting http status code.