次の方法で共有


HttpBinding.Verb プロパティ

HTTP 要求を行うために "GET" メソッドと "POST" メソッドのどちらを使用するかを示す値を取得または設定します。

Public Property Verb As String
[C#]
public string Verb {get; set;}
[C++]
public: __property String* get_Verb();public: __property void set_Verb(String*);
[JScript]
public function get Verb() : String;public function set Verb(String);

プロパティ値

2 つの指定できる値 "GET" と "POST" のいずれかを格納する文字列。既定値は空の文字列 ("") です。

解説

新しい HttpBinding を作成して、その Verb プロパティを設定する例を次に示します。

 
' Create the 'HttpBinding' object.
Dim myHttpBinding As New HttpBinding()

myHttpBinding.Verb = "POST"
' Add the 'HttpBinding' to the 'Binding'.
myBinding.Extensions.Add(myHttpBinding)

[C#] 

               // Create the 'HttpBinding' object.
               HttpBinding myHttpBinding = new HttpBinding();

               myHttpBinding.Verb="POST";
               // Add the 'HttpBinding' to the 'Binding'.
               myBinding.Extensions.Add(myHttpBinding);

[C++] 

               // Create the 'HttpBinding' object.
               HttpBinding* myHttpBinding = new HttpBinding();

               myHttpBinding->Verb=S"POST";
               // Add the 'HttpBinding' to the 'Binding'.
               myBinding->Extensions->Add(myHttpBinding);

必要条件

プラットフォーム: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 ファミリ

参照

HttpBinding クラス | HttpBinding メンバ | System.Web.Services.Description 名前空間