ServiceDescriptionCollection.Item[] Vlastnost

Definice

Získá nebo nastaví ServiceDescription instanci určenou parametrem předaného.

Přetížení

Name Description
Item[Int32]

Získá nebo nastaví hodnotu v zadaném indexu založeném ServiceDescription na nule.

Item[String]

Získá zadanou ServiceDescription vlastností TargetNamespace .

Item[Int32]

Získá nebo nastaví hodnotu v zadaném indexu založeném ServiceDescription na nule.

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

Parametry

index
Int32

Index ServiceDescription založený na nule, jehož hodnota je změněna nebo vrácena.

Hodnota vlastnosti

Hodnota zadaného ServiceDescription indexu.

Příklady

// 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

Platí pro

Item[String]

Získá zadanou ServiceDescription vlastností TargetNamespace .

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

Parametry

ns
String

Obor názvů vrácených ServiceDescription .

Hodnota vlastnosti

Určuje ServiceDescription jeho vlastnost oboru názvů.

Příklady

// 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/")

Platí pro