SoapAddressBinding.Location プロパティ
SoapAddressBinding を適用する Port のための URI を表す値を取得または設定します。
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);
プロパティ値
URI を含んでいる文字列。既定値は空の文字列 ("") です。
使用例
Dim soapPort As New Port()
soapPort.Name = "Service1Soap"
soapPort.Binding = New XmlQualifiedName("s0:Service1Soap")
' Create a 'SoapAddressBinding' object for the 'SOAP' protocol.
Dim mySoapAddressBinding As New SoapAddressBinding()
mySoapAddressBinding.Location = "https://localhost/Service1_vb.asmx"
' Add the 'SoapAddressBinding' object to the 'Port'.
soapPort.Extensions.Add(mySoapAddressBinding)
' Add the 'Port' object to the ServiceDescription instance.
myDescription.Services(0).Ports.Add(soapPort)
[C#]
Port soapPort = new Port();
soapPort.Name = "Service1Soap";
soapPort.Binding = new XmlQualifiedName("s0:Service1Soap");
// Create a 'SoapAddressBinding' object for the 'SOAP' protocol.
SoapAddressBinding mySoapAddressBinding =
new SoapAddressBinding();
mySoapAddressBinding.Location = "https://localhost/Service1_cs.asmx";
// Add the 'SoapAddressBinding' object to the 'Port'.
soapPort.Extensions.Add(mySoapAddressBinding);
// Add the 'Port' object to the ServiceDescription instance.
myDescription.Services[0].Ports.Add(soapPort);
[C++]
Port* soapPort = new Port();
soapPort->Name = S"Service1Soap";
soapPort->Binding = new XmlQualifiedName(S"s0:Service1Soap");
// Create a 'SoapAddressBinding' object for the 'SOAP' protocol.
SoapAddressBinding* mySoapAddressBinding =
new SoapAddressBinding();
mySoapAddressBinding->Location = S"https://localhost/Service1_cs.asmx";
// Add the 'SoapAddressBinding' object to the 'Port'.
soapPort->Extensions->Add(mySoapAddressBinding);
// Add the 'Port' object to the ServiceDescription instance.
myDescription->Services->Item[0]->Ports->Add(soapPort);
[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 ファミリ
参照
SoapAddressBinding クラス | SoapAddressBinding メンバ | System.Web.Services.Description 名前空間