HttpBinding Klasa

Definicja

Reprezentuje element rozszerzalności dodany do Binding usługi sieci Web XML. Klasa ta nie może być dziedziczona.

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
Dziedziczenie
Atrybuty

Przykłady

W poniższym przykładzie przedstawiono typowe użycie HttpBinding klasy.

// 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)

Uwagi

Użycie tej klasy jako elementu rozszerzalności określa, że informacje mają być przekazywane przez protokół HTTP. Aby uzyskać więcej informacji na temat specyfikacji protokołów dla usług sieci Web XML, zobacz XML Web Services Using ASP.NET (Usługi sieci Web XML przy użyciu ASP.NET). Aby uzyskać więcej informacji na temat języka opisu usług sieci Web (WSDL), zobacz specyfikację języka WSDL .

Konstruktory

HttpBinding()

Inicjuje nowe wystąpienie klasy HttpBinding.

Pola

Namespace

Określa identyfikator URI przestrzeni nazw XML reprezentującej transport HTTP do użycia z protokołem SOAP. To pole jest stałe.

Właściwości

Handled

Pobiera lub ustawia wartość wskazującą, czy ServiceDescriptionFormatExtension element jest używany przez proces importowania podczas importowania elementu rozszerzalności.

(Odziedziczone po ServiceDescriptionFormatExtension)
Parent

Pobiera element nadrzędny obiektu ServiceDescriptionFormatExtension.

(Odziedziczone po ServiceDescriptionFormatExtension)
Required

Pobiera lub ustawia wartość wskazującą, czy ServiceDescriptionFormatExtension akcja, do której się odwołuje.

(Odziedziczone po ServiceDescriptionFormatExtension)
Verb

Pobiera lub ustawia wartość wskazującą, czy żądanie HTTP zostanie wykonane przy użyciu metody "GET" lub "POST".

Metody

Equals(Object)

Określa, czy dany obiekt jest taki sam, jak bieżący obiekt.

(Odziedziczone po Object)
GetHashCode()

Służy jako domyślna funkcja skrótu.

(Odziedziczone po Object)
GetType()

Type Pobiera wartość bieżącego wystąpienia.

(Odziedziczone po Object)
MemberwiseClone()

Tworzy płytkią kopię bieżącego Objectelementu .

(Odziedziczone po Object)
ToString()

Zwraca ciąg reprezentujący bieżący obiekt.

(Odziedziczone po Object)

Dotyczy