OperationCollection.Item Property
.NET Framework 3.0
Gets or sets the value of an Operation at the specified zero-based index.
Namespace: System.Web.Services.Description
Assembly: System.Web.Services (in system.web.services.dll)
Assembly: System.Web.Services (in system.web.services.dll)
public: property Operation^ default [int] { Operation^ get (int index); void set (int index, Operation^ value); }
/** @property */ public Operation get_Item (int index) /** @property */ public void set_Item (int index, Operation value)
Not applicable.
Parameters
- index
The zero-based index of the Operation whose value is modified or returned.
Property Value
An Operation.The following example demonstrates the use of the zero-based index to retrieve a member of the OperationCollection.
myOperationCollection->Remove( myOperation ); // Insert the 'myOpearation' operation at the index '0'. myOperationCollection->Insert( 0, myOperation ); Console::WriteLine( "The operation at index '0' is : {0}", myOperationCollection[ 0 ]->Name );
myOperationCollection.Remove(myOperation);
// Insert the 'myOpearation' operation at the index '0'.
myOperationCollection.Insert(0, myOperation);
Console.WriteLine("The operation at index '0' is : "
+ myOperationCollection.get_Item(0).get_Name());
Windows 98, Windows Server 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.Community Additions
ADD
Show: