Freigeben über


Port.Extensions-Eigenschaft

Ruft die Auflistung der Erweiterbarkeitselemente ab, die der Port-Klasse zugeordnet sind.

Namespace: System.Web.Services.Description
Assembly: System.Web.Services (in system.web.services.dll)

Syntax

'Declaration
Public Overrides ReadOnly Property Extensions As ServiceDescriptionFormatExtensionCollection
'Usage
Dim instance As Port
Dim value As ServiceDescriptionFormatExtensionCollection

value = instance.Extensions
public override ServiceDescriptionFormatExtensionCollection Extensions { get; }
public:
virtual property ServiceDescriptionFormatExtensionCollection^ Extensions {
    ServiceDescriptionFormatExtensionCollection^ get () override;
}
/** @property */
public ServiceDescriptionFormatExtensionCollection get_Extensions ()
public override function get Extensions () : ServiceDescriptionFormatExtensionCollection

Eigenschaftenwert

Eine ServiceDescriptionFormatExtensionCollection.

Beispiel

' Create a Port.
Dim postPort As New Port()
postPort.Name = "PortServiceHttpPost"
postPort.Binding = New XmlQualifiedName("s0:PortServiceHttpPost")


' Create an HttpAddressBinding.
Dim postAddressBinding As New HttpAddressBinding()
postAddressBinding.Location = _
   "https://localhost/PortClass/PortService.vb.asmx"

' Add the HttpAddressBinding to the Port.
postPort.Extensions.Add(postAddressBinding)
// Create a Port.
Port postPort = new Port();
postPort.Name = "PortServiceHttpPost";
postPort.Binding = new XmlQualifiedName("s0:PortServiceHttpPost");

// Create an HttpAddressBinding.
HttpAddressBinding postAddressBinding = new HttpAddressBinding();
postAddressBinding.Location = 
   "https://localhost/PortClass/PortService_cs.asmx";

// Add the HttpAddressBinding to the Port.
postPort.Extensions.Add(postAddressBinding);
// Create a Port.
Port^ postPort = gcnew Port;
postPort->Name = "PortServiceHttpPost";
postPort->Binding = gcnew XmlQualifiedName( "s0:PortServiceHttpPost" );

// Create an HttpAddressBinding.
HttpAddressBinding^ postAddressBinding = gcnew HttpAddressBinding;
postAddressBinding->Location = "https://localhost/PortClass/PortService_cs.asmx";

// Add the HttpAddressBinding to the Port.
postPort->Extensions->Add( postAddressBinding );
// Create a Port.
Port postPort = new Port();
postPort.set_Name("PortServiceHttpPost");
postPort.set_Binding(
    new XmlQualifiedName("s0:PortServiceHttpPost"));

// Create an HttpAddressBinding.
HttpAddressBinding postAddressBinding = new HttpAddressBinding();
postAddressBinding.set_Location(
    "https://localhost/PortClass/PortService_jsl.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

Port-Klasse
Port-Member
System.Web.Services.Description-Namespace