WebApiAttribute(HttpMethodType) 构造函数
注意:此 API 现在已过时。
构造函数,用于初始化WebApiAttribute对象并设置HTTP方法类型。
命名空间: TouchSocket.WebApi程序集: TouchSocket.WebApi (在 TouchSocket.WebApi.dll 中) 版本:3.0.0+ccaf96084d09f972257496d1dd63b8ba3c1e44f0
[ObsoleteAttribute("由于构造函数直接设置参数在源生成时效果不一致,所以取消该方式,如果想要设置参数,请使用属性直接设置,例如:MethodInvoke=true",
true)]
public WebApiAttribute(
HttpMethodType method
)
<ObsoleteAttribute("由于构造函数直接设置参数在源生成时效果不一致,所以取消该方式,如果想要设置参数,请使用属性直接设置,例如:MethodInvoke=true",
true)>
Public Sub New (
method As HttpMethodType
)
[<ObsoleteAttribute("由于构造函数直接设置参数在源生成时效果不一致,所以取消该方式,如果想要设置参数,请使用属性直接设置,例如:MethodInvoke=true",
true)>]
new :
method : HttpMethodType -> WebApiAttribute
参数
- method HttpMethodType
- 指定HTTP请求的方法类型,如GET、POST等。