Partager via


ServiceDescriptionFormatExtensionCollection.Item[Int32] Propriété

Définition

Obtient ou définit la valeur d'un membre de 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

Paramètres

index
Int32

Index de base zéro du membre dont la valeur est modifiée ou retournée.

Valeur de propriété

Object

Valeur du ServiceDescriptionFormatExtension.

Exemples

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

S’applique à