ServiceDescriptionFormatExtensionCollection.Item[Int32] Właściwość

Definicja

Pobiera lub ustawia wartość elementu członkowskiego .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

Parametry

index
Int32

Indeks zera elementu członkowskiego, którego wartość jest modyfikowana lub zwracana.

Wartość właściwości

Object

Wartość elementu ServiceDescriptionFormatExtension.

Przykłady

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

Dotyczy