WebClientHelper Class | Helper帮助文档 |
网络客户端帮助类
Inheritance Hierarchy
Namespace: HD.Common
Assembly: HD.Common (in HD.Common.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
public class WebClientHelper
Public Class WebClientHelper
public ref class WebClientHelper
type WebClientHelper = class end
The WebClientHelper type exposes the following members.
Constructors
Name | Description | |
---|---|---|
WebClientHelper |
创建WebClient的实例
|
Methods
Name | Description | |
---|---|---|
DownloadFile |
下载文件
| |
Equals | (Inherited from Object.) | |
Finalize | (Inherited from Object.) | |
GetData |
从指定URL下载数据
| |
GetHashCode | (Inherited from Object.) | |
GetHtml |
获取网页源代码
| |
GetType | (Inherited from Object.) | |
MemberwiseClone | (Inherited from Object.) | |
Post(String, MultipartForm) |
向指定网址发送mulitpart编码的数据
| |
Post(String, Byte) |
向指定URL发送字节数据
| |
Post(String, String) |
向指定URL发送文本数据
| |
ToString | (Inherited from Object.) |
Properties
Name | Description | |
---|---|---|
BufferSize |
设置发送和接收的数据缓冲大小
| |
CookieContainer |
获取或设置与请求关联的Cookie容器
| |
Encoding |
获取或设置请求与响应的文本编码方式
| |
Proxy |
获取或设置代理
| |
RequestHeaders |
获取请求头集合
| |
RespHtml |
获取或设置响应的html代码
| |
ResponseHeaders |
获取响应头集合
|
Events
Name | Description | |
---|---|---|
DownloadProgressChanged | ||
UploadProgressChanged |
See Also