Freigeben über


ServiceDescriptionFormatExtensionCollection.Item[Int32] Eigenschaft

Definition

Ruft den Wert eines Members der ServiceDescriptionFormatExtensionCollection ab oder legt diesen fest.

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

Parameter

index
Int32

Der nullbasierte Index des Members, dessen Wert geändert oder zurückgegeben wird.

Eigenschaftswert

Object

Der Wert des ServiceDescriptionFormatExtension-Objekts.

Beispiele

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

Gilt für