ServiceDescriptionCollection.Remove(ServiceDescription) Método
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.
Remove a primeira ocorrência do especificado ServiceDescription da coleção.
public:
void Remove(System::Web::Services::Description::ServiceDescription ^ serviceDescription);
public void Remove(System.Web.Services.Description.ServiceDescription serviceDescription);
member this.Remove : System.Web.Services.Description.ServiceDescription -> unit
Public Sub Remove (serviceDescription As ServiceDescription)
Parâmetros
- serviceDescription
- ServiceDescription
A ServiceDescription remover da coleção.
Exemplos
// Get the index of 'ServiceDescription' object.
int myIndex = myCollection.IndexOf(myServiceDescription2);
// Remove 'ServiceDescription' object from the collection.
myCollection.Remove(myServiceDescription2);
Console.WriteLine("Element at index {0} is removed ", myIndex);
' Get the index of 'ServiceDescription' object.
Dim myIndex As Integer = myCollection.IndexOf(myServiceDescription2)
' Remove 'ServiceDescription' object from the collection.
myCollection.Remove(myServiceDescription2)
Console.WriteLine("Element at index {0} is removed ", myIndex.ToString())
Observações
Este método realiza uma pesquisa linear; Portanto, o tempo médio de execução é proporcional a Count.
Os elementos que seguem ao removido ServiceDescription sobem para ocupar o local vago.