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 返回的异步计算(Async 对象)。

平台

Windows 8,Windows 7,Windows server 2012中,Windows server 2008 R2

版本信息

F#核心库版本

受以下版本支持:2.0、4.0

请参见

参考

Control.WebExtensions 模块 (F#)

WebClient