次の方法で共有


HttpAddressBinding.Location プロパティ

XML Web サービスの URL を表す値を取得または設定します。

Public Property Location As String
[C#]
public string Location {get; set;}
[C++]
public: __property String* get_Location();public: __property void set_Location(String*);
[JScript]
public function get Location() : String;public function set Location(String);

プロパティ値

Port の URI を指定する文字列。既定値は空の文字列 ("") です。

使用例

 
' 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++ のサンプルを表示するには、このページの左上隅にある言語のフィルタ ボタン 言語のフィルタ をクリックします。

必要条件

プラットフォーム: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 ファミリ

参照

HttpAddressBinding クラス | HttpAddressBinding メンバ | System.Web.Services.Description 名前空間