HttpAddressBinding.Location Property
.NET Framework 3.0
Gets or sets a value representing the URL of the XML Web service.
Namespace: System.Web.Services.Description
Assembly: System.Web.Services (in system.web.services.dll)
Assembly: System.Web.Services (in system.web.services.dll)
/** @property */ public String get_Location () /** @property */ public void set_Location (String value)
public function get Location () : String public function set Location (value : String)
Not applicable.
Property Value
A string specifying the URI for the Port. The default value is an empty string ("").// 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.set_Location("http://localhost/Service1.asmx");
// Add the 'HttpAddressBinding' to the 'Port'.
postPort.get_Extensions().Add(postAddressBinding);
Windows 98, Windows Server 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
The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.Community Additions
ADD
Show: