HttpBinding Classe

Définition

Représente un élément d'extensibilité ajouté à un Binding dans un service Web XML. Cette classe ne peut pas être héritée.

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
Héritage
Attributs

Exemples

L’exemple suivant montre une utilisation classique de la HttpBinding classe .

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

Remarques

L’utilisation de cette classe en tant qu’élément d’extensibilité spécifie que les informations doivent être transmises par HTTP. Pour plus d’informations sur la spécification des protocoles pour les services Web XML, consultez Services Web XML à l’aide de ASP.NET. Pour plus d’informations sur WSDL (Web Services Description Language), consultez la spécification WSDL .

Constructeurs

HttpBinding()

Initialise une nouvelle instance de la classe HttpBinding.

Champs

Namespace

Spécifie l'URI pour l'espace de noms XML représentant le protocole de transport HTTP à utiliser avec SOAP. Ce champ est constant.

Propriétés

Handled

Obtient ou définit une valeur indiquant si ServiceDescriptionFormatExtension est utilisé par le processus d'importation lors de l'importation de l'élément d'extensibilité.

(Hérité de ServiceDescriptionFormatExtension)
Parent

Obtient le parent du ServiceDescriptionFormatExtension.

(Hérité de ServiceDescriptionFormatExtension)
Required

Obtient ou définit une valeur indiquant si ServiceDescriptionFormatExtension est nécessaire pour l'action à laquelle il fait référence.

(Hérité de ServiceDescriptionFormatExtension)
Verb

Obtient ou définit une valeur indiquant si la requête HTTP sera effectuée à l'aide de la méthode « GET » ou « POST ».

Méthodes

Equals(Object)

Détermine si l'objet spécifié est égal à l'objet actuel.

(Hérité de Object)
GetHashCode()

Fait office de fonction de hachage par défaut.

(Hérité de Object)
GetType()

Obtient le Type de l'instance actuelle.

(Hérité de Object)
MemberwiseClone()

Crée une copie superficielle du Object actuel.

(Hérité de Object)
ToString()

Retourne une chaîne qui représente l'objet actuel.

(Hérité de Object)

S’applique à