HttpAddressBinding.Location-Eigenschaft
Ruft einen Wert ab, der den URL des XML-Webdiensts darstellt, oder legt diesen fest.
Namespace: System.Web.Services.Description
Assembly: System.Web.Services (in system.web.services.dll)
Syntax
'Declaration
Public Property Location As String
'Usage
Dim instance As HttpAddressBinding
Dim value As String
value = instance.Location
instance.Location = value
public string Location { get; set; }
public:
property String^ Location {
String^ get ();
void set (String^ value);
}
/** @property */
public String get_Location ()
/** @property */
public void set_Location (String value)
public function get Location () : String
public function set Location (value : String)
Eigenschaftenwert
Eine Zeichenfolge, die den URI für den Port angibt. Der Standardwert ist eine leere Zeichenfolge ("").
Beispiel
' 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)
// Create the 'HttpAddressBinding' object.
HttpAddressBinding postAddressBinding = new HttpAddressBinding();
postAddressBinding.Location = "https://localhost/Service1.asmx";
// Add the 'HttpAddressBinding' to the 'Port'.
postPort.Extensions.Add(postAddressBinding);
// Create the 'HttpAddressBinding' object.
HttpAddressBinding^ postAddressBinding = gcnew HttpAddressBinding;
postAddressBinding->Location = "https://localhost/Service1.asmx";
// Add the 'HttpAddressBinding' to the 'Port'.
postPort->Extensions->Add( postAddressBinding );
// Create the 'HttpAddressBinding' object.
HttpAddressBinding postAddressBinding = new HttpAddressBinding();
postAddressBinding.set_Location("https://localhost/Service1.asmx");
// Add the 'HttpAddressBinding' to the 'Port'.
postPort.get_Extensions().Add(postAddressBinding);
Plattformen
Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
.NET Framework unterstützt nicht alle Versionen sämtlicher Plattformen. Eine Liste der unterstützten Versionen finden Sie unter Systemanforderungen.
Versionsinformationen
.NET Framework
Unterstützt in: 2.0, 1.1, 1.0
Siehe auch
Referenz
HttpAddressBinding-Klasse
HttpAddressBinding-Member
System.Web.Services.Description-Namespace