Udostępnij za pośrednictwem


WebClient.AsyncDownloadString Extension Method (F#)

Returns an asynchronous computation that, when run, will wait for the download of the given URI.

Namespace/Module Path: Microsoft.FSharp.Control.WebExtensions

Assembly: FSharp.Core (in FSharp.Core.dll)

// Signature:
type System.Net.WebClient with
  member AsyncDownloadString : Uri -> Async<string>

// Usage:
webClient.AsyncDownloadString (address)

Parameters

  • address
    Type: Uri

    The URI to retrieve.

Return Value

An asynchronous computation (Async object) that will wait for the return of the URI.

Platforms

Windows 7, Windows Vista SP2, Windows XP SP3, Windows XP x64 SP2, Windows Server 2008 R2, Windows Server 2008 SP2, Windows Server 2003 SP2

Version Information

F# Runtime

Supported in: 2.0

Silverlight

Supported in: 3

See Also

Reference

Control.WebExtensions Module (F#)

WebClient