Hinweis
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, sich anzumelden oder das Verzeichnis zu wechseln.
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, das Verzeichnis zu wechseln.
Ruft einen Wert ab, der den URI für den Port darstellt, für den das SoapAddressBinding gilt, 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 SoapAddressBinding
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 einen URI enthält. Der Standardwert ist eine leere Zeichenfolge ("").
Beispiel
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)
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);
Port^ soapPort = gcnew Port;
soapPort->Name = "Service1Soap";
soapPort->Binding = gcnew XmlQualifiedName( "s0:Service1Soap" );
// Create a 'SoapAddressBinding' object for the 'SOAP' protocol.
SoapAddressBinding^ mySoapAddressBinding = gcnew 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 );
Port soapPort = new Port();
soapPort.set_Name("Service1Soap");
soapPort.set_Binding(new XmlQualifiedName("s0:Service1Soap"));
// Create a 'SoapAddressBinding' object for the 'SOAP' protocol.
SoapAddressBinding mySoapAddressBinding = new SoapAddressBinding();
mySoapAddressBinding.set_Location("https://localhost/Service1_jsl.asmx");
// Add the 'SoapAddressBinding' object to the 'Port'.
soapPort.get_Extensions().Add(mySoapAddressBinding);
// Add the 'Port' object to the ServiceDescription instance.
myDescription.get_Services().get_Item(0).get_Ports().Add(soapPort);
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
SoapAddressBinding-Klasse
SoapAddressBinding-Member
System.Web.Services.Description-Namespace