OperationCollection.Item[Int32] Property

Definition

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

C#
public System.Web.Services.Description.Operation this[int index] { get; set; }

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.

C#
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);

Applies to

Produit Versions
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0 (package-provided)