WebClientHelper Class

HD.Common

WebClientHelper Class Helper帮助文档
网络客户端帮助类
Inheritance Hierarchy

SystemObject  HD.CommonWebClientHelper

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

  NameDescription
Public methodWebClientHelper
创建WebClient的实例
Top
Methods

  NameDescription
Public methodDownloadFile
下载文件
Public methodEquals (Inherited from Object.)
Protected methodFinalize (Inherited from Object.)
Public methodGetData
从指定URL下载数据
Public methodGetHashCode (Inherited from Object.)
Public methodGetHtml
获取网页源代码
Public methodGetType (Inherited from Object.)
Protected methodMemberwiseClone (Inherited from Object.)
Public methodPost(String, MultipartForm)
向指定网址发送mulitpart编码的数据
Public methodPost(String, Byte)
向指定URL发送字节数据
Public methodPost(String, String)
向指定URL发送文本数据
Public methodToString (Inherited from Object.)
Top
Properties

  NameDescription
Public propertyBufferSize
设置发送和接收的数据缓冲大小
Public propertyCookieContainer
获取或设置与请求关联的Cookie容器
Public propertyEncoding
获取或设置请求与响应的文本编码方式
Public propertyProxy
获取或设置代理
Public propertyRequestHeaders
获取请求头集合
Public propertyRespHtml
获取或设置响应的html代码
Public propertyResponseHeaders
获取响应头集合
Top
Events

  NameDescription
Public eventDownloadProgressChanged
Public eventUploadProgressChanged
Top
See Also

Reference