Binding.Extensions Property

Gets the collection of extensibility elements used in the XML Web service.

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

public:
virtual property ServiceDescriptionFormatExtensionCollection^ Extensions {
	ServiceDescriptionFormatExtensionCollection^ get () override;
}
/** @property */
public ServiceDescriptionFormatExtensionCollection get_Extensions ()

public override function get Extensions () : ServiceDescriptionFormatExtensionCollection

Not applicable.

Property Value

Returns a ServiceDescriptionFormatExtensionCollection.

The following example demonstrates a typical use of the Extensions property.

// Create SOAP Extensibility element.
SoapBinding^ mySoapBinding = gcnew SoapBinding;
// SOAP over HTTP.
mySoapBinding->Transport = "http://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("http://schemas.xmlsoap.org/soap/http");
mySoapBinding.set_Style(SoapBindingStyle.Document);

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

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.

.NET Framework

Supported in: 3.0, 2.0, 1.1, 1.0

Community Additions

ADD
Show: