This documentation is archived and is not being maintained.
OperationBindingCollection.Add Method
.NET Framework 1.1
Adds the specified OperationBinding to the end of the OperationBindingCollection.
[Visual Basic] Public Function Add( _ ByVal bindingOperation As OperationBinding _ ) As Integer [C#] public int Add( OperationBinding bindingOperation ); [C++] public: int Add( OperationBinding* bindingOperation ); [JScript] public function Add( bindingOperation : OperationBinding ) : int;
Parameters
- bindingOperation
- The OperationBinding to add to the collection.
Return Value
The zero-based index where the bindingOperation parameter has been added.
Example
[Visual Basic, C#, C++] The following example demonstrates the use of the Add method.
[Visual Basic] ' Add the Add OperationBinding to the collection. myOperationBindingCollection.Add(addOperationBinding) Console.WriteLine(ControlChars.NewLine & _ "Added the OperationBinding of the Add " & _ "operation to the collection.") [C#] // Add the Add OperationBinding to the collection. myOperationBindingCollection.Add(addOperationBinding); Console.WriteLine("\nAdded the OperationBinding of the Add" + " operation to the collection."); [C++] // Add the Add OperationBinding to the collection. myOperationBindingCollection->Add(addOperationBinding); Console::WriteLine(S"\nAdded the OperationBinding of the Add" S" operation to the collection.");
[JScript] No example is available for JScript. To view a Visual Basic, C#, or C++ example, click the Language Filter button
in the upper-left corner of the page.
Requirements
Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family
See Also
OperationBindingCollection Class | OperationBindingCollection Members | System.Web.Services.Description Namespace
Show: