OperationBindingCollection::Add Method (OperationBinding^)

 

Adds the specified OperationBinding to the end of the OperationBindingCollection.

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

public:
int Add(
	OperationBinding^ bindingOperation
)

Parameters

bindingOperation
Type: System.Web.Services.Description::OperationBinding^

The OperationBinding to add to the collection.

Return Value

Type: System::Int32

The zero-based index where the bindingOperation parameter has been added.

The following example demonstrates the use of the Add method.

// Add the Add OperationBinding to the collection.
myOperationBindingCollection->Add( addOperationBinding );
Console::WriteLine( "\nAdded the OperationBinding of the Add"
" operation to the collection." );

.NET Framework
Available since 1.1
Return to top
Show: