This documentation is archived and is not being maintained.

OperationBinding.Extensions Property

Gets the collection of extensibility elements specific to the current OperationBinding.

[Visual Basic]
Public ReadOnly Property Extensions As _
   ServiceDescriptionFormatExtensionCollection
[C#]
public ServiceDescriptionFormatExtensionCollection Extensions
   {get;}
[C++]
public: __property ServiceDescriptionFormatExtensionCollection*
   get_Extensions();
[JScript]
public function get Extensions() :
   ServiceDescriptionFormatExtensionCollection;

Property Value

Returns a ServiceDescriptionFormatExtensionCollection.

Remarks

For more information about Web Services Description Language (WSDL), see the specification at http://www.w3.org/TR/wsdl/.

Example

[Visual Basic] 
' Create an extensibility element for a SoapOperationBinding.
Dim mySoapOperationBinding As New SoapOperationBinding()
mySoapOperationBinding.Style = SoapBindingStyle.Document
mySoapOperationBinding.SoapAction = myTargetNamespace & addOperation

' Add the extensibility element SoapOperationBinding to 
' the OperationBinding.
addOperationBinding.Extensions.Add(mySoapOperationBinding)

[C#] 
// Create an extensibility element for a SoapOperationBinding.
SoapOperationBinding mySoapOperationBinding = 
   new SoapOperationBinding();
mySoapOperationBinding.Style = SoapBindingStyle.Document;
mySoapOperationBinding.SoapAction = myTargetNamespace + addOperation;

// Add the extensibility element SoapOperationBinding to 
// the OperationBinding.
addOperationBinding.Extensions.Add(mySoapOperationBinding);

[C++] 
// Create an extensibility element for a SoapOperationBinding.
SoapOperationBinding* mySoapOperationBinding = 
   new SoapOperationBinding();
mySoapOperationBinding->Style = SoapBindingStyle::Document;
mySoapOperationBinding->SoapAction = String::Concat( myTargetNamespace, addOperation );

// Add the extensibility element SoapOperationBinding to 
// the OperationBinding.
addOperationBinding->Extensions->Add(mySoapOperationBinding);

[JScript] No example is available for JScript. To view a Visual Basic, C#, or C++ example, click the Language Filter button Language Filter in the upper-left corner of the page.

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also

OperationBinding Class | OperationBinding Members | System.Web.Services.Description Namespace

Show: