ServiceDescriptionCollection.Item[] Propriedade
Definição
Importante
Algumas informações dizem respeito a um produto pré-lançado que pode ser substancialmente modificado antes de ser lançado. A Microsoft não faz garantias, de forma expressa ou implícita, em relação à informação aqui apresentada.
Obtém ou define a ServiceDescription instância especificada pelo parâmetro passado.
Sobrecargas
| Name | Description |
|---|---|
| Item[Int32] |
Obtém ou define o valor de a ServiceDescription no índice zero especificado. |
| Item[String] |
Obtém um ServiceDescription especificado pela sua TargetNamespace propriedade. |
Item[Int32]
Obtém ou define o valor de a ServiceDescription no índice zero especificado.
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
Parâmetros
- index
- Int32
O índice baseado em zero de cujo ServiceDescription valor é modificado ou devolvido.
Valor de Propriedade
O valor de a ServiceDescription no índice especificado.
Exemplos
// 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
Aplica-se a
Item[String]
Obtém um ServiceDescription especificado pela sua TargetNamespace propriedade.
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
Parâmetros
- ns
- String
O namespace dos ServiceDescription retornados.
Valor de Propriedade
A ServiceDescription especificado pela sua propriedade de namespace.
Exemplos
// 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/")