Επεξεργασία

Κοινή χρήση μέσω


OperationCollection.Item[Int32] Property

Definition

Gets or sets the value of an Operation at the specified zero-based index.

public:
 property System::Web::Services::Description::Operation ^ default[int] { System::Web::Services::Description::Operation ^ get(int index); void set(int index, System::Web::Services::Description::Operation ^ value); };
public System.Web.Services.Description.Operation this[int index] { get; set; }
member this.Item(int) : System.Web.Services.Description.Operation with get, set
Default Public Property Item(index As Integer) As Operation

Parameters

index
Int32

The zero-based index of the Operation whose value is modified or returned.

Property Value

An Operation.

Examples

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[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.Item(0).Name)

Applies to