HttpMethodAttribute 建構函式
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
初始化 HttpMethodAttribute 類別的新執行個體。
多載
| 名稱 | Description |
|---|---|
| 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 化為 a Type ,將從 XML Web 服務客戶端傳送的參數序列化到 XML Web 服務方法。