HttpAddressBinding Classe

Definizione

Rappresenta un elemento di estensibilità aggiunto a un oggetto Port all'interno di un servizio Web XML. La classe non può essere ereditata.

public ref class HttpAddressBinding sealed : System::Web::Services::Description::ServiceDescriptionFormatExtension
[System.Web.Services.Configuration.XmlFormatExtension("address", "http://schemas.xmlsoap.org/wsdl/http/", typeof(System.Web.Services.Description.Port))]
public sealed class HttpAddressBinding : System.Web.Services.Description.ServiceDescriptionFormatExtension
[<System.Web.Services.Configuration.XmlFormatExtension("address", "http://schemas.xmlsoap.org/wsdl/http/", typeof(System.Web.Services.Description.Port))>]
type HttpAddressBinding = class
    inherit ServiceDescriptionFormatExtension
Public NotInheritable Class HttpAddressBinding
Inherits ServiceDescriptionFormatExtension
Ereditarietà
Attributi

Esempio

// Create the 'HttpAddressBinding' object.
HttpAddressBinding^ postAddressBinding = gcnew HttpAddressBinding;
postAddressBinding->Location = "http://localhost/Service1.asmx";

// Add the 'HttpAddressBinding' to the 'Port'.
postPort->Extensions->Add( postAddressBinding );

// Create the 'HttpAddressBinding' object.
HttpAddressBinding postAddressBinding = new HttpAddressBinding();

postAddressBinding.Location = "http://localhost/Service1.asmx";

// Add the 'HttpAddressBinding' to the 'Port'.
postPort.Extensions.Add(postAddressBinding);
' Create the 'HttpAddressBinding' object.
Dim postAddressBinding As New HttpAddressBinding()

postAddressBinding.Location = "http://localhost/Service1.asmx"

' Add the 'HttpAddressBinding' to the 'Port'.
postPort.Extensions.Add(postAddressBinding)

Commenti

Questa classe, tramite la relativa Location proprietà, specifica l'URI di base per il servizio Web XML. Per altre informazioni sui servizi Web XML, vedere Servizi Web XML tramite ASP.NET. Per altre informazioni sul linguaggio WSDL (Web Services Description Language), vedere la specifica WSDL .

Costruttori

HttpAddressBinding()

Inizializza una nuova istanza della classe HttpAddressBinding.

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à.

(Ereditato da ServiceDescriptionFormatExtension)
Location

Ottiene o imposta un valore che rappresenta l'URL del servizio Web XML.

Parent

Ottiene l'elemento padre dell'oggetto ServiceDescriptionFormatExtension.

(Ereditato da ServiceDescriptionFormatExtension)
Required

Ottiene o imposta un valore che indica se l'oggetto ServiceDescriptionFormatExtension è necessario per l'azione a cui fa riferimento.

(Ereditato da ServiceDescriptionFormatExtension)

Metodi

Equals(Object)

Determina se l'oggetto specificato è uguale all'oggetto corrente.

(Ereditato da Object)
GetHashCode()

Funge da funzione hash predefinita.

(Ereditato da Object)
GetType()

Ottiene l'oggetto Type dell'istanza corrente.

(Ereditato da Object)
MemberwiseClone()

Crea una copia superficiale dell'oggetto Object corrente.

(Ereditato da Object)
ToString()

Restituisce una stringa che rappresenta l'oggetto corrente.

(Ereditato da Object)

Si applica a