ServiceDescriptionFormatExtensionCollection.Add Method (Object)
.NET Framework (current version)
Adds the specified ServiceDescriptionFormatExtension to the end of the ServiceDescriptionFormatExtensionCollection.
Assembly: System.Web.Services (in System.Web.Services.dll)
Parameters
- extension
-
Type:
System.Object
The ServiceDescriptionFormatExtension, passed by reference, to add to the ServiceDescriptionFormatExtensionCollection.
Return Value
Type: System.Int32The zero-based index where the ServiceDescriptionFormatExtension has been added.
Dim mySoapBinding1 As New SoapBinding() Dim mySoapBinding2 As New SoapBinding() Dim mySoapAddressBinding As New SoapAddressBinding() Dim myFormatExtensionObject As New MyFormatExtension() ' Add elements to collection. myCollection.Add(mySoapBinding1) myCollection.Add(mySoapAddressBinding) myCollection.Add(mySoapBinding2) myCollection.Add(myFormatExtensionObject)
.NET Framework
Available since 1.1
Available since 1.1
Show: