OperationCollection.Item[Int32] Свойство

Определение

Получает или задает значение объекта Operation по указанному индексу (отсчитываемому с нуля).

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

Параметры

index
Int32

Индекс (с нуля) объекта Operation, значение которого изменяется или возвращается.

Значение свойства

Operation

Объект Operation.

Примеры

В следующем примере показано использование отсчитываемого от нуля индекса для получения элемента 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)

Применяется к