HttpAddressBinding Klasa
Definicja
Ważne
Niektóre informacje odnoszą się do produktu w wersji wstępnej, który może zostać znacząco zmodyfikowany przed wydaniem. Firma Microsoft nie udziela żadnych gwarancji, jawnych lub domniemanych, w odniesieniu do informacji podanych w tym miejscu.
Reprezentuje element rozszerzalności dodany do Port usługi sieci Web XML. Tej klasy nie można dziedziczyć.
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 using ASP.NET). Aby uzyskać więcej informacji na temat języka opisu usług sieci Web (WSDL), zobacz specyfikację WSDL .
Konstruktory
| 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. (Odziedziczone po ServiceDescriptionFormatExtension) |
| Location |
Pobiera lub ustawia wartość reprezentującą adres URL usługi sieci Web XML. |
| Parent |
Pobiera element nadrzędny elementu ServiceDescriptionFormatExtension. (Odziedziczone po ServiceDescriptionFormatExtension) |
| Required |
Pobiera lub ustawia wartość wskazującą, czy ServiceDescriptionFormatExtension jest to konieczne dla akcji, do której się odwołuje. (Odziedziczone po ServiceDescriptionFormatExtension) |
Metody
| Nazwa | Opis |
|---|---|
| Equals(Object) |
Określa, czy określony obiekt jest równy bieżącemu obiektowi. (Odziedziczone po Object) |
| GetHashCode() |
Służy jako domyślna funkcja skrótu. (Odziedziczone po Object) |
| GetType() |
Pobiera Type bieżącego wystąpienia. (Odziedziczone po Object) |
| MemberwiseClone() |
Tworzy płytkią kopię bieżącego Object. (Odziedziczone po Object) |
| ToString() |
Zwraca ciąg reprezentujący bieżący obiekt. (Odziedziczone po Object) |