HttpBinding Classe
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 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
L’exemple suivant illustre 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)
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 .
Http |
Initialise une nouvelle instance de la classe HttpBinding. |
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. |
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 ». |
Equals(Object) |
Détermine si l'objet spécifié est égal à l'objet actuel. (Hérité de Object) |
Get |
Fait office de fonction de hachage par défaut. (Hérité de Object) |
Get |
Obtient le Type de l'instance actuelle. (Hérité de Object) |
Memberwise |
Crée une copie superficielle du Object actuel. (Hérité de Object) |
To |
Retourne une chaîne qui représente l'objet actuel. (Hérité de Object) |
Produit | Versions |
---|---|
.NET Framework | 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
.NET Standard | 2.0 (package-provided) |
Commentaires sur .NET
.NET est un projet open source. Sélectionnez un lien pour fournir des commentaires :