來源處
--
請至原站看唷,各種用法均有範例說明
Imports System.Net
Module Module1
Sub Main()
' Resource acquisition statement.
Using client As New WebClient
' Set one of the headers.
client.Headers("User-Agent") = "Mozilla/4.0"
' Download data as byte array.
Dim arr() As Byte = client.DownloadData("http://dotnetperls.com/")
' Result.
Console.WriteLine(arr.Length)
End Using
End Sub
End Module
沒有留言:
張貼留言