UtilWebDownloadImageAsync(String, WebProxy) 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,
WebProxy proxy
)
Public Shared Function DownloadImageAsync (
url As String,
proxy As WebProxy
) As Task(Of Image)
Dim url As String
Dim proxy As WebProxy
Dim returnValue As Task(Of Image)
returnValue = UtilWeb.DownloadImageAsync(url,
proxy)
public:
static Task<Image^>^ DownloadImageAsync(
String^ url,
WebProxy^ proxy
)
static member DownloadImageAsync :
url : string *
proxy : WebProxy -> Task<Image>
No code example is currently available or this language may not be supported.
- url String
-
The url to download.
- proxy WebProxy
-
The proxy to use.
TaskImage
The resource
Image.
This is a code example.
No code example is currently available or this language may not be supported.
Dim proxy As New WebProxy(Host:="myproxy address", Port:=800)
proxy.Credentials = New NetworkCredential("user", "pass")
Dim img As Image = Await DownloadImageAsync("http://i.imgur.com/EkZXp16.png", proxy)
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.