OperationCollection.Item[Int32] Özellik

Tanım

Belirtilen sıfır tabanlı dizinde değerini Operation alır veya ayarlar.

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

Parametreler

index
Int32

Değeri değiştirilen veya döndürülen değerinin Operation sıfır tabanlı dizini.

Özellik Değeri

Operation

Bir Operation.

Örnekler

Aşağıdaki örnekte, öğesinin bir üyesini almak için sıfır tabanlı dizinin kullanımı gösterilmektedir 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)

Şunlara uygulanır