HttpBinding クラス

定義

XML Web サービス内の Binding に追加される機能拡張要素を表します。 このクラスは継承できません。

public ref class HttpBinding sealed : System::Web::Services::Description::ServiceDescriptionFormatExtension
[System.Web.Services.Configuration.XmlFormatExtension("binding", "http://schemas.xmlsoap.org/wsdl/http/", typeof(System.Web.Services.Description.Binding))]
[System.Web.Services.Configuration.XmlFormatExtensionPrefix("http", "http://schemas.xmlsoap.org/wsdl/http/")]
public sealed class HttpBinding : System.Web.Services.Description.ServiceDescriptionFormatExtension
[<System.Web.Services.Configuration.XmlFormatExtension("binding", "http://schemas.xmlsoap.org/wsdl/http/", typeof(System.Web.Services.Description.Binding))>]
[<System.Web.Services.Configuration.XmlFormatExtensionPrefix("http", "http://schemas.xmlsoap.org/wsdl/http/")>]
type HttpBinding = class
    inherit ServiceDescriptionFormatExtension
Public NotInheritable Class HttpBinding
Inherits ServiceDescriptionFormatExtension
継承
属性

次の例は、 HttpBinding クラスの一般的な使用方法を示しています。

// Create the 'HttpBinding' object.
HttpBinding^ myHttpBinding = gcnew HttpBinding;
myHttpBinding->Verb = "POST";

// Add the 'HttpBinding' to the 'Binding'.
myBinding->Extensions->Add( myHttpBinding );

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

myHttpBinding.Verb="POST";
// Add the 'HttpBinding' to the 'Binding'.
myBinding.Extensions.Add(myHttpBinding);
' Create the 'HttpBinding' object.
Dim myHttpBinding As New HttpBinding()

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

注釈

このクラスを拡張要素として使用すると、情報を HTTP で渡すことが指定されます。 XML Web サービスのプロトコルの仕様の詳細については、「XML Web Services Using ASP.NET」を参照してください。 Web サービス記述言語 (WSDL) の詳細については、 WSDL 仕様を参照してください。

コンストラクター

名前 説明
HttpBinding()

HttpBinding クラスの新しいインスタンスを初期化します。

フィールド

名前 説明
Namespace

SOAP で使用する HTTP トランスポートを表す XML 名前空間の URI を指定します。 このフィールドは定数です。

プロパティ

名前 説明
Handled

拡張要素のインポート時にインポート プロセスで ServiceDescriptionFormatExtension を使用するかどうかを示す値を取得または設定します。

(継承元 ServiceDescriptionFormatExtension)
Parent

ServiceDescriptionFormatExtensionの親を取得します。

(継承元 ServiceDescriptionFormatExtension)
Required

参照先のアクションに ServiceDescriptionFormatExtension が必要かどうかを示す値を取得または設定します。

(継承元 ServiceDescriptionFormatExtension)
Verb

HTTP 要求が "GET" メソッドまたは "POST" メソッドを使用して行われるかどうかを示す値を取得または設定します。

メソッド

名前 説明
Equals(Object)

指定したオブジェクトが現在のオブジェクトと等しいかどうかを判断します。

(継承元 Object)
GetHashCode()

既定のハッシュ関数として機能します。

(継承元 Object)
GetType()

現在のインスタンスの Type を取得します。

(継承元 Object)
MemberwiseClone()

現在の Objectの簡易コピーを作成します。

(継承元 Object)
ToString()

現在のオブジェクトを表す文字列を返します。

(継承元 Object)

適用対象