Freigeben über


Binding.Extensions-Eigenschaft

Ruft die Auflistung von Erweiterbarkeitselementen ab, die in dem XML-Webdienst verwendet werden.

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 Binding
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

Gibt eine ServiceDescriptionFormatExtensionCollection-Klasse zurück.

Beispiel

Das folgende Beispiel veranschaulicht eine typische Verwendung der Extensions-Eigenschaft.

' Create SOAP Extensibility element.
Dim mySoapBinding As New SoapBinding()
' SOAP over Http.

mySoapBinding.Transport = "https://schemas.xmlsoap.org/soap/http"
mySoapBinding.Style = SoapBindingStyle.Document
' Add tag soap:binding as an extensibility element.
myBinding.Extensions.Add(mySoapBinding)
// Create SOAP Extensibility element.
SoapBinding mySoapBinding = new SoapBinding();
// SOAP over HTTP.
mySoapBinding.Transport = "https://schemas.xmlsoap.org/soap/http";
mySoapBinding.Style = SoapBindingStyle.Document;
// Add tag soap:binding as an extensibility element.
myBinding.Extensions.Add(mySoapBinding);
// Create SOAP Extensibility element.
SoapBinding^ mySoapBinding = gcnew SoapBinding;
// SOAP over HTTP.
mySoapBinding->Transport = "https://schemas.xmlsoap.org/soap/http";
mySoapBinding->Style = SoapBindingStyle::Document;
// Add tag soap:binding as an extensibility element.
myBinding->Extensions->Add( mySoapBinding );
// Create SOAP Extensibility element.
SoapBinding mySoapBinding = new SoapBinding();

// SOAP over HTTP.
mySoapBinding.set_Transport("https://schemas.xmlsoap.org/soap/http");
mySoapBinding.set_Style(SoapBindingStyle.Document);

// Add tag soap:binding as an extensibility element.
myBinding.get_Extensions().Add(mySoapBinding);

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

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