请解释[WebMethod(BufferResponse = false)] [英] Please explain [WebMethod(BufferResponse=false)]

查看:74
本文介绍了请解释[WebMethod(BufferResponse = false)]的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有人可以解释一下究竟是什么' [WebMethod(BufferResponse = false)] '是?

 

非常感谢

推荐答案

" [的WebMethod] QUOT;是放置在ASMX Web服务中的方法上的属性,用于指示该方法应被视为Web服务操作。

"[WebMethod]" is an attribute placed on a method within an ASMX web service to indicate that the method should be treated as a web service operation.

指定"BufferResponse = false"表示只要响应的任何部分可用,.NET就应该开始将响应发送到客户端,而不是等待整个响应变为可用。

Specifying "BufferResponse=false" indicates that .NET should begin sending the response to the client as soon as any part of the response becomes available, instead of waiting for the entire response to become available.


这篇关于请解释[WebMethod(BufferResponse = false)]的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆