HttpAddressBinding 類別
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
代表在 XML 網路服務中新增 Port 的可擴充性元素。 無法繼承這個類別。
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
- 繼承
- 屬性
範例
// 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)
備註
此類別透過其 Location 特性指定 XML Web 服務的基礎 URI。 欲了解更多關於 XML Web 服務的資訊,請參閱 XML Web Services Using ASP.NET。 欲了解更多關於網路服務描述語言(WSDL)的資訊,請參閱 WSDL 規範。
建構函式
| 名稱 | Description |
|---|---|
| HttpAddressBinding() |
初始化 HttpAddressBinding 類別的新執行個體。 |
屬性
| 名稱 | Description |
|---|---|
| Handled |
取得或設定一個值,表示在匯入擴充性元素匯入時是否會被 使用 。ServiceDescriptionFormatExtension (繼承來源 ServiceDescriptionFormatExtension) |
| Location |
取得或設定一個代表 XML 網路服務 URL 的值。 |
| Parent |
取得 的父 ServiceDescriptionFormatExtension節點。 (繼承來源 ServiceDescriptionFormatExtension) |
| Required |
取得或設定一個值,表示是否 ServiceDescriptionFormatExtension 對其所指動作是必要的。 (繼承來源 ServiceDescriptionFormatExtension) |
方法
| 名稱 | Description |
|---|---|
| Equals(Object) |
判斷指定的物件是否等於目前的物件。 (繼承來源 Object) |
| GetHashCode() |
做為預設哈希函式。 (繼承來源 Object) |
| GetType() |
取得目前實例的 Type。 (繼承來源 Object) |
| MemberwiseClone() |
建立目前 Object的淺層複本。 (繼承來源 Object) |
| ToString() |
傳回表示目前 物件的字串。 (繼承來源 Object) |