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.
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
Available since 1.1
Show: