ServiceDescriptionFormatExtensionCollection::Add Method (Object^)

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

public:
int Add(
	Object^ extension
)

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.

SoapBinding^ mySoapBinding1 = gcnew SoapBinding;
SoapBinding^ mySoapBinding2 = gcnew SoapBinding;
SoapAddressBinding^ mySoapAddressBinding = gcnew SoapAddressBinding;
MyFormatExtension^ myFormatExtensionObject = gcnew 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: