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:
property ServiceDescriptionFormatExtensionCollection^ Extensions {
	virtual ServiceDescriptionFormatExtensionCollection^ get() override;
}

Property Value

Type: System.Web.Services.Description::ServiceDescriptionFormatExtensionCollection^

A ServiceDescriptionFormatExtensionCollection object that contains the collection of extensibility elements used in the XML Web service.

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 );

.NET Framework
Available since 1.1
Return to top
Show: