HttpBinding Classe
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Représente un élément d’extensibilité ajouté à un au sein d’un Binding 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 comme é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 XML Web Services using ASP.NET. Pour plus d’informations sur le langage WSDL (Web Services Description Language), consultez la spécification WSDL .
Constructeurs
| Nom | Description |
|---|---|
| HttpBinding() |
Initialise une nouvelle instance de la classe HttpBinding. |
Champs
| Nom | Description |
|---|---|
| Namespace |
Spécifie l’URI de l’espace de noms XML représentant le transport HTTP à utiliser avec SOAP. Ce champ est constant. |
Propriétés
| Nom | Description |
|---|---|
| Handled |
Obtient ou définit une valeur indiquant si l’objet ServiceDescriptionFormatExtension est utilisé par le processus d’importation lorsque l’élément d’extensibilité est importé. (Hérité de ServiceDescriptionFormatExtension) |
| Parent |
Obtient le parent du ServiceDescriptionFormatExtension. (Hérité de ServiceDescriptionFormatExtension) |
| Required |
Obtient ou définit une valeur indiquant si l’action ServiceDescriptionFormatExtension à laquelle elle fait référence est nécessaire. (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
| Nom | Description |
|---|---|
| Equals(Object) |
Détermine si l’objet spécifié est égal à l’objet actuel. (Hérité de Object) |
| GetHashCode() |
Sert de fonction de hachage par défaut. (Hérité de Object) |
| GetType() |
Obtient la Type de l’instance actuelle. (Hérité de Object) |
| MemberwiseClone() |
Crée une copie superficielle du Objectactuel. (Hérité de Object) |
| ToString() |
Retourne une chaîne qui représente l’objet actuel. (Hérité de Object) |