OperationCollection.Item[Int32] 속성

정의

지정된 0부터 시작하는 인덱스의 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

값이 수정되거나 반환되는 인덱스(0부터 시작하는 인덱 Operation 스)입니다.

속성 값

Operation입니다.

예제

다음 예제에서는 0부터 시작하는 인덱스를 사용하여 멤버 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)

적용 대상