ServiceDescriptionFormatExtensionCollection.Add Method (Object)

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

Public Function Add (
	extension As Object
) As Integer

Parameters

extension
Type: System.Object

The ServiceDescriptionFormatExtension, passed by reference, to add to the ServiceDescriptionFormatExtensionCollection.

Return Value

Type: System.Int32

The 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
Return to top
Show: