語言

HttpBinding.Verb 屬性

定義

接收或設定一個值,指示 HTTP 請求是使用 “GET” 還是 “POST” 方法來發送。

public:
 property System::String ^ Verb { System::String ^ get(); void set(System::String ^ value); };
public string Verb { get; set; }
member this.Verb : string with get, set
Public Property Verb As String

屬性值

一個包含兩個可能值之一的字串,分別是「GET」或「POST」。 預設值是空字串 ("")。

備註

以下範例建立一個新物件 HttpBinding 並設定其 Verb 屬性。

WebServices_HttpBinding#2

適用於