HttpAddressBinding クラス
XML Web サービス内の Port に追加された機能拡張要素を表します。このクラスは継承できません。
この型のすべてのメンバの一覧については、HttpAddressBinding メンバ を参照してください。
System.Object
System.Web.Services.Description.ServiceDescriptionFormatExtension
System.Web.Services.Description.HttpAddressBinding
NotInheritable Public Class HttpAddressBinding
Inherits ServiceDescriptionFormatExtension
[C#]
public sealed class HttpAddressBinding :
ServiceDescriptionFormatExtension
[C++]
public __gc __sealed class HttpAddressBinding : public
ServiceDescriptionFormatExtension
[JScript]
public class HttpAddressBinding extends
ServiceDescriptionFormatExtension
スレッドセーフ
この型の public static (Visual Basicでは Shared) のすべてのメンバは、マルチスレッド操作で安全に使用できます。インスタンスのメンバの場合は、スレッドセーフであるとは限りません。
解説
このクラスは、 Location プロパティを使って XML Web サービスの基本 URI を指定します。XML Web サービスの詳細については、「 ASP.NET を使用した XML Web サービスの作成 」を参照してください。WSDL (Web Services Description Language) の詳細については、http://www.w3.org/TR/wsdl/ の仕様を参照してください。
使用例
' Create the 'HttpAddressBinding' object.
Dim postAddressBinding As New HttpAddressBinding()
postAddressBinding.Location = "https://localhost/Service1.asmx"
' Add the 'HttpAddressBinding' to the 'Port'.
postPort.Extensions.Add(postAddressBinding)
[C#]
// Create the 'HttpAddressBinding' object.
HttpAddressBinding postAddressBinding = new HttpAddressBinding();
postAddressBinding.Location = "https://localhost/Service1.asmx";
// Add the 'HttpAddressBinding' to the 'Port'.
postPort.Extensions.Add(postAddressBinding);
[C++]
// Create the 'HttpAddressBinding' object.
HttpAddressBinding* postAddressBinding = new HttpAddressBinding();
postAddressBinding->Location = S"https://localhost/Service1.asmx";
// Add the 'HttpAddressBinding' to the 'Port'.
postPort->Extensions->Add(postAddressBinding);
[JScript] JScript のサンプルはありません。Visual Basic、C#、および C++ のサンプルを表示するには、このページの左上隅にある言語のフィルタ ボタン をクリックします。
必要条件
名前空間: System.Web.Services.Description
プラットフォーム: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 ファミリ
アセンブリ: System.Web.Services (System.Web.Services.dll 内)
参照
HttpAddressBinding メンバ | System.Web.Services.Description 名前空間