HttpMethodAttribute 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
初始化 HttpMethodAttribute 类的新实例。
重载
| 名称 | 说明 |
|---|---|
| HttpMethodAttribute() |
初始化 HttpMethodAttribute 类的新实例。 |
| HttpMethodAttribute(Type, Type) |
初始化 的新 HttpMethodAttribute实例。 |
HttpMethodAttribute()
初始化 HttpMethodAttribute 类的新实例。
public:
HttpMethodAttribute();
public HttpMethodAttribute();
Public Sub New ()
适用于
HttpMethodAttribute(Type, Type)
初始化 的新 HttpMethodAttribute实例。
public:
HttpMethodAttribute(Type ^ returnFormatter, Type ^ parameterFormatter);
public HttpMethodAttribute(Type returnFormatter, Type parameterFormatter);
new System.Web.Services.Protocols.HttpMethodAttribute : Type * Type -> System.Web.Services.Protocols.HttpMethodAttribute
Public Sub New (returnFormatter As Type, parameterFormatter As Type)
参数
- returnFormatter
- Type
将 ReturnFormatter 属性初始化为 Type 从 XML Web 服务方法反序列化响应的属性。
- parameterFormatter
- Type
将 ParameterFormatter 属性初始化为 Type 序列化从 XML Web 服务客户端发送到 XML Web 服务方法的参数。