HttpWebRequest.ContinueDelegate 属性

定义

获取或设置从 Internet 资源接收 HTTP 100 继续响应时调用的委托方法。

public:
 property System::Net::HttpContinueDelegate ^ ContinueDelegate { System::Net::HttpContinueDelegate ^ get(); void set(System::Net::HttpContinueDelegate ^ value); };
public System.Net.HttpContinueDelegate? ContinueDelegate { get; set; }
public System.Net.HttpContinueDelegate ContinueDelegate { get; set; }
member this.ContinueDelegate : System.Net.HttpContinueDelegate with get, set
Public Property ContinueDelegate As HttpContinueDelegate

属性值

实现从 Internet 资源返回 HTTP Continue 响应时执行的回调方法的委托。 默认值为 null

注解

谨慎

WebRequestHttpWebRequestServicePointWebClient 已过时,不应将其用于新开发。 请改用 HttpClient

ContinueDelegate 属性指定在客户端收到 100-Continue 响应时要调用的回调方法。

设置 ContinueDelegate 属性时,每当收到类型为 HttpStatusCode.Continue (100) 的协议响应时,客户端将调用委托。 如果希望客户端显示从 Internet 资源接收的数据的状态,这非常有用。

适用于

另请参阅