一款简单易用的基础网络通讯组件库。

WebApiAttribute(HttpMethodType) 构造函数

注意:此 API 现在已过时。
构造函数,用于初始化WebApiAttribute对象并设置HTTP方法类型。

Definition

命名空间: TouchSocket.WebApi
程序集: TouchSocket.WebApi (在 TouchSocket.WebApi.dll 中) 版本:3.0.0+ccaf96084d09f972257496d1dd63b8ba3c1e44f0
C#
[ObsoleteAttribute("由于构造函数直接设置参数在源生成时效果不一致,所以取消该方式,如果想要设置参数,请使用属性直接设置,例如:MethodInvoke=true", 
	true)]
public WebApiAttribute(
	HttpMethodType method
)

参数

method  HttpMethodType
指定HTTP请求的方法类型,如GET、POST等。

参见