HttpBinding Classe
Definizione
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
- Ereditarietà
- Attributi
Esempio
Nell'esempio seguente viene illustrato un utilizzo tipico della HttpBinding
classe.The following example shows a typical usage of the HttpBinding
class.
// 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)
Commenti
L'uso di questa classe come elemento extensibility specifica che le informazioni devono essere passate da HTTP.The use of this class as an extensibility element specifies that information is to be passed by HTTP. Per ulteriori informazioni sulla specifica dei protocolli per i servizi Web XML, vedere XML Web Services Using ASP.NET.For more information about specification of protocols for XML Web services, see XML Web Services Using ASP.NET. Per ulteriori informazioni su Web Services Description Language (WSDL), vedere la specifica WSDL .For more information about Web Services Description Language (WSDL), see the WSDL specification.
Costruttori
HttpBinding() |
Inizializza una nuova istanza della classe HttpBinding.Initializes a new instance of the HttpBinding class. |
Campi
Namespace |
Specifica l'URI dello spazio dei nomi XML che rappresenta il trasporto HTTP da utilizzare con SOAP.Specifies the URI for the XML namespace representing the HTTP transport for use with SOAP. Questo campo è costante.This field is constant. |
Proprietà
Handled |
Ottiene o imposta un valore che indica se l'oggetto ServiceDescriptionFormatExtension viene utilizzato dal processo di importazione quando vengono importati gli elementi di estensibilità.Gets or sets a value indicating whether the ServiceDescriptionFormatExtension is used by the import process when the extensibility element is imported. (Ereditato da ServiceDescriptionFormatExtension) |
Parent |
Ottiene l'elemento padre dell'oggetto ServiceDescriptionFormatExtension.Gets the parent of the ServiceDescriptionFormatExtension. (Ereditato da ServiceDescriptionFormatExtension) |
Required |
Ottiene o imposta un valore che indica se l'oggetto ServiceDescriptionFormatExtension è necessario per l'azione a cui fa riferimento.Gets or sets a value indicating whether the ServiceDescriptionFormatExtension is necessary for the action to which it refers. (Ereditato da ServiceDescriptionFormatExtension) |
Verb |
Ottiene o imposta un valore che indica se la richiesta HTTP verrà effettuata utilizzando il metodo "GET" o "POST".Gets or sets a value indicating whether the HTTP request will be made using the "GET" or "POST" method. |
Metodi
Equals(Object) |
Determina se l'oggetto specificato è uguale all'oggetto corrente.Determines whether the specified object is equal to the current object. (Ereditato da Object) |
GetHashCode() |
Funge da funzione hash predefinita.Serves as the default hash function. (Ereditato da Object) |
GetType() |
Ottiene l'oggetto Type dell'istanza corrente.Gets the Type of the current instance. (Ereditato da Object) |
MemberwiseClone() |
Crea una copia superficiale dell'oggetto Object corrente.Creates a shallow copy of the current Object. (Ereditato da Object) |
ToString() |
Restituisce una stringa che rappresenta l'oggetto corrente.Returns a string that represents the current object. (Ereditato da Object) |