HttpAddressBinding Klasa

Definicja

Reprezentuje element rozszerzalności dodany do Port usługi sieci Web XML. Klasa ta nie może być dziedziczona.

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
Dziedziczenie
Atrybuty

Przykłady

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

Uwagi

Ta klasa, za pośrednictwem jej Location właściwości, określa podstawowy identyfikator URI dla usługi sieci Web XML. Aby uzyskać więcej informacji na temat usług sieci Web XML, zobacz XML Web Services Using ASP.NET (Usługi sieci Web XML przy użyciu ASP.NET). Aby uzyskać więcej informacji na temat języka opisu usług sieci Web (WSDL), zobacz specyfikację języka WSDL .

Konstruktory

HttpAddressBinding()

Inicjuje nowe wystąpienie klasy HttpAddressBinding.

Właściwości

Handled

Pobiera lub ustawia wartość wskazującą, czy ServiceDescriptionFormatExtension element jest używany przez proces importowania podczas importowania elementu rozszerzalności.

(Odziedziczone po ServiceDescriptionFormatExtension)
Location

Pobiera lub ustawia wartość reprezentującą adres URL usługi sieci Web XML.

Parent

Pobiera element nadrzędny obiektu ServiceDescriptionFormatExtension.

(Odziedziczone po ServiceDescriptionFormatExtension)
Required

Pobiera lub ustawia wartość wskazującą, czy ServiceDescriptionFormatExtension akcja, do której się odwołuje.

(Odziedziczone po ServiceDescriptionFormatExtension)

Metody

Equals(Object)

Określa, czy dany obiekt jest taki sam, jak bieżący obiekt.

(Odziedziczone po Object)
GetHashCode()

Służy jako domyślna funkcja skrótu.

(Odziedziczone po Object)
GetType()

Type Pobiera wartość bieżącego wystąpienia.

(Odziedziczone po Object)
MemberwiseClone()

Tworzy płytkią kopię bieżącego Objectelementu .

(Odziedziczone po Object)
ToString()

Zwraca ciąg reprezentujący bieżący obiekt.

(Odziedziczone po Object)

Dotyczy