|
在WinForm中通过HTTP协议向服务器端上传文件(11) } /// <summary> /// Timeout for the Web request in seconds. Times out on connection, read and send operations. /// Default is 30 seconds. /// </summary> public int Timeout { get {return this.nConnectTimeout; } set {this.nConnectTimeout = value; } } /// <summary> /// Error Message if the Error Flag is set or an error value is returned from a method. /// </summary> public string ErrorMsg { get { return this.cErrorMsg; } set { this.cErrorMsg = value; } } /// <summary> /// Error flag if an error occurred. /// </summary> public bool Error { get { return this.bError; } set { this.bError = value; } } /// <summary> /// Determines whether errors cause exceptions to be thrown. By default errors /// are handled in the class and the Error property is set for error conditions. /// (not implemented at this time). /// </summary> public bool ThrowExceptions { get { return bThrowExceptions; } set { this.bThrowExceptions = value;} } /// <summary> /// If set to a non-zero value will automatically track cookies. The number assigned is the cookie count. /// </summary> public bool HandleCookies { get { return this.bHandleCookies; } set { this.bHandleCookies = value; } } public CookieCollection Cookies {
|