OperationBindingCollection.Item Property
Gets or sets the value of an OperationBinding at the specified zero-based index.
[C#] In C#, this property is the indexer for the OperationBindingCollection class.
[Visual Basic] Public Default Property Item( _ ByVal index As Integer _ ) As OperationBinding [C#] public OperationBinding this[ int index ] {get; set;} [C++] public: __property OperationBinding* get_Item( int index ); public: __property void set_Item( int index, OperationBinding* ); [JScript] returnValue = OperationBindingCollectionObject.Item(index); OperationBindingCollectionObject.Item(index) = returnValue; -or- returnValue = OperationBindingCollectionObject(index); OperationBindingCollectionObject(index) = returnValue;
[JScript] In JScript, you can use the default indexed properties defined by a type, but you cannot explicitly define your own. However, specifying the expando attribute on a class automatically provides a default indexed property whose type is Object and whose index type is String.
Arguments [JScript]
- index
- The zero-based index of the OperationBinding whose value is modified or returned.
Parameters [Visual Basic, C#, C++]
- index
- The zero-based index of the OperationBinding whose value is modified or returned.
Property Value
An OperationBinding.
Example
[Visual Basic, C#, C++] The following example demonstrates the use of a zero-based index to retrive a member of the OperationBindingCollection.
[Visual Basic] ' Get the OperationBinding of the Add operation from the collection. Dim myOperationBinding As OperationBinding = _ myOperationBindingCollection(3) ' Remove the OperationBinding of the 'Add' operation from ' the collection. myOperationBindingCollection.Remove(myOperationBinding) Console.WriteLine(ControlChars.NewLine & _ "Removed the OperationBinding of the " & _ "Add operation from the collection.") [C#] // Get the OperationBinding of the Add operation from the collection. OperationBinding myOperationBinding = myOperationBindingCollection[3]; // Remove the OperationBinding of the Add operation from // the collection. myOperationBindingCollection.Remove(myOperationBinding); Console.WriteLine("\nRemoved the OperationBinding of the " + "Add operation from the collection."); [C++] // Get the OperationBinding of the Add operation from the collection. OperationBinding* myOperationBinding = myOperationBindingCollection->Item[3]; // Remove the OperationBinding of the Add operation from // the collection. myOperationBindingCollection->Remove(myOperationBinding); Console::WriteLine(S"\nRemoved the OperationBinding of the " S"Add operation from 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