Udostępnij przez


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 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 korzystające z ASP.NET). Aby uzyskać więcej informacji na temat języka opisu usług sieci Web (WSDL), zobacz specyfikację WSDL .

Konstruktorów

Nazwa Opis
HttpAddressBinding()

Inicjuje nowe wystąpienie klasy HttpAddressBinding.

Właściwości

Nazwa Opis
Handled

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

(Dziedziczone od ServiceDescriptionFormatExtension)
Location

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

Parent

Pobiera element nadrzędny elementu ServiceDescriptionFormatExtension.

(Dziedziczone od ServiceDescriptionFormatExtension)
Required

Pobiera lub ustawia wartość wskazującą, czy ServiceDescriptionFormatExtension jest to konieczne dla akcji, do której się odwołuje.

(Dziedziczone od ServiceDescriptionFormatExtension)

Metody

Nazwa Opis
Equals(Object)

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

(Dziedziczone od Object)
GetHashCode()

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

(Dziedziczone od Object)
GetType()

Type Pobiera bieżące wystąpienie.

(Dziedziczone od Object)
MemberwiseClone()

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

(Dziedziczone od Object)
ToString()

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

(Dziedziczone od Object)

Dotyczy