다음을 통해 공유


ServiceDescriptionFormatExtensionCollection.Item[Int32] 속성

정의

ServiceDescriptionFormatExtensionCollection 멤버의 값을 가져오거나 설정합니다.

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

매개 변수

index
Int32

값이 수정되거나 반환된 멤버의 인덱스(0부터 시작)입니다.

속성 값

ServiceDescriptionFormatExtension의 값입니다.

예제

Console::WriteLine( "Collection contains following types of elements: " );

// Display the 'Type' of the elements in collection.
for ( int i = 0; i < myCollection->Count; i++ )
   Console::WriteLine( myCollection[ i ]->GetType() );
Console.WriteLine("Collection contains following types of elements: ");
// Display the 'Type' of the elements in collection.
for(int i = 0;i< myCollection.Count;i++)
{
   Console.WriteLine(myCollection[i].GetType().ToString());
}
Console.WriteLine("Collection contains following types of elements: ")
' Display the 'Type' of the elements in collection.
Dim i As Integer
For i = 0 To myCollection.Count - 1
   Console.WriteLine(myCollection(i).GetType().ToString())
Next i

적용 대상