UtilWebDownloadImageAsync(String, String) Method
Asynchronously downloads the specified resource as a Image.
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<Image> DownloadImageAsync(
string url,
string userAgent
)
Public Shared Function DownloadImageAsync (
url As String,
userAgent As String
) As Task(Of Image)
Dim url As String
Dim userAgent As String
Dim returnValue As Task(Of Image)
returnValue = UtilWeb.DownloadImageAsync(url,
userAgent)
public:
static Task<Image^>^ DownloadImageAsync(
String^ url,
String^ userAgent
)
static member DownloadImageAsync :
url : string *
userAgent : string -> Task<Image>
No code example is currently available or this language may not be supported.
- url String
-
The url to download.
- userAgent String
-
Specifies a custom user-agent to perform the web request.
TaskImage
The resource
Image.
This is a code example.
No code example is currently available or this language may not be supported.
Dim img As Image = Await DownloadImageAsync("http://i.imgur.com/EkZXp16.png", "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.2; .NET CLR 1.0.3705;)")
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.