Partager via


WebClient.AsyncDownloadString, méthode d'extension (F#)

Retourne un calcul asynchrone qui, lorsqu'il est exécuté, attendra le téléchargement de l'URI donné.

Espace de noms/Chemin du module : 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)

Paramètres

  • address
    Type : Uri

    URI à récupérer.

Valeur de retour

Calcul asynchrone (objet Async) qui attendra le retour de l'URI.

Plateformes

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

Informations de version

Runtime F#

Prise en charge dans : 2.0

Silverlight

Prise en charge dans : 3

Voir aussi

Référence

Control.WebExtensions, module (F#)

WebClient