共用方式為


WebClient.AsyncDownloadString 擴充方法 (F#)

傳回非同步計算,這個計算在執行時會等候下載指定的 URI。

命名空間/模組路徑: Microsoft.FSharp.Control.WebExtensions

組件:FSharp.Core (在 FSharp.Core.dll 中)

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

// Usage:
webClient.AsyncDownloadString (address)

參數

  • address
    型別:Uri

    要擷取的 URI。

傳回值

一個非同步計算 ( 非同步 物件) 所等待的 URI 的報酬。

平台

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

版本資訊

F# 執行階段

支援版本:2.0

Silverlight

支援版本:3

請參閱

參考

Control.WebExtensions 模組 (F#)

WebClient