Udostępnij przez


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 korzystające z ASP.NET). Aby uzyskać więcej informacji na temat języka opisu usług sieci Web (WSDL), zobacz specyfikację WSDL .

Konstruktorów

Nazwa Opis
HttpBinding()

Inicjuje nowe wystąpienie klasy HttpBinding.

Pola

Nazwa Opis
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

Nazwa Opis
Handled

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

(Dziedziczone od ServiceDescriptionFormatExtension)
Parent

Pobiera element nadrzędny elementu ServiceDescriptionFormatExtension.

(Dziedziczone od ServiceDescriptionFormatExtension)
Required

Pobiera lub ustawia wartość wskazującą, czy ServiceDescriptionFormatExtension jest to konieczne dla akcji, do której się odwołuje.

(Dziedziczone od ServiceDescriptionFormatExtension)
Verb

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

Metody

Nazwa Opis
Equals(Object)

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

(Dziedziczone od Object)
GetHashCode()

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

(Dziedziczone od Object)
GetType()

Type Pobiera bieżące wystąpienie.

(Dziedziczone od Object)
MemberwiseClone()

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

(Dziedziczone od Object)
ToString()

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

(Dziedziczone od Object)

Dotyczy