Langue

ServiceDescriptionCollection.Item[] Propriété

Définition

Obtient ou définit l’instance ServiceDescription spécifiée par le paramètre passé.

Surcharges

Nom Description
Item[Int32]

Obtient ou définit la valeur d’un ServiceDescription index de base zéro spécifié.

Item[String]

Obtient une ServiceDescription valeur spécifiée par sa TargetNamespace propriété.

Item[Int32]

Obtient ou définit la valeur d’un ServiceDescription index de base zéro spécifié.

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

Paramètres

index
Int32

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

Valeur de propriété

Valeur d’un ServiceDescription index spécifié.

Exemples

// Display element properties in the collection using 
// the Item property.
for ( int i = 0; i < myCollection->Count; i++ )
   Console::WriteLine( myCollection[ i ]->TargetNamespace );
// Display element properties in collection using 'Item' property.
for(int i=0; i<myCollection.Count; i++)
{
   Console.WriteLine(myCollection[i].TargetNamespace);
}
' Display element properties in collection using 'Item' property.
Dim i As Integer
For i = 0 To myCollection.Count - 1
   Console.WriteLine(myCollection(i).TargetNamespace)
Next i

S’applique à

Item[String]

Obtient une ServiceDescription valeur spécifiée par sa TargetNamespace propriété.

public:
 property System::Web::Services::Description::ServiceDescription ^ default[System::String ^] { System::Web::Services::Description::ServiceDescription ^ get(System::String ^ ns); };
public System.Web.Services.Description.ServiceDescription this[string ns] { get; }
member this.Item(string) : System.Web.Services.Description.ServiceDescription
Default Public ReadOnly Property Item(ns As String) As ServiceDescription

Paramètres

ns
String

Espace de noms du ServiceDescription retour.

Valeur de propriété

Spécifié ServiceDescription par sa propriété d’espace de noms.

Exemples

// Get a ServiceDescription in the collection using 
// the Item property.
ServiceDescription^ myServiceDescription = myCollection[ "http://tempuri1.org/" ];
// Get a 'ServiceDescription' object in collection using 'Item'.
ServiceDescription myServiceDescription = myCollection["http://tempuri1.org/"];
' Get a 'ServiceDescription' object in collection using 'Item'.
Dim myServiceDescription As ServiceDescription = myCollection("http://tempuri1.org/")

S’applique à