ServiceCollectionDescriptorExtensions.RemoveAllKeyed Método
Definição
Importante
Algumas informações se referem a produtos de pré-lançamento que podem ser substancialmente modificados antes do lançamento. A Microsoft não oferece garantias, expressas ou implícitas, das informações aqui fornecidas.
Sobrecargas
RemoveAllKeyed(IServiceCollection, Type, Object) |
Remove todos os serviços do tipo |
RemoveAllKeyed<T>(IServiceCollection, Object) |
Remove todos os serviços do tipo |
RemoveAllKeyed(IServiceCollection, Type, Object)
Remove todos os serviços do tipo serviceType
na collection
.
public:
[System::Runtime::CompilerServices::Extension]
static Microsoft::Extensions::DependencyInjection::IServiceCollection ^ RemoveAllKeyed(Microsoft::Extensions::DependencyInjection::IServiceCollection ^ collection, Type ^ serviceType, System::Object ^ serviceKey);
public static Microsoft.Extensions.DependencyInjection.IServiceCollection RemoveAllKeyed (this Microsoft.Extensions.DependencyInjection.IServiceCollection collection, Type serviceType, object? serviceKey);
static member RemoveAllKeyed : Microsoft.Extensions.DependencyInjection.IServiceCollection * Type * obj -> Microsoft.Extensions.DependencyInjection.IServiceCollection
<Extension()>
Public Function RemoveAllKeyed (collection As IServiceCollection, serviceType As Type, serviceKey As Object) As IServiceCollection
Parâmetros
- collection
- IServiceCollection
- serviceType
- Type
O tipo de serviço a ser removido.
- serviceKey
- Object
A chave de serviço.
Retornos
O IServiceCollection para encadeamento.
Aplica-se a
RemoveAllKeyed<T>(IServiceCollection, Object)
Remove todos os serviços do tipo T
na collection
.
public:
generic <typename T>
[System::Runtime::CompilerServices::Extension]
static Microsoft::Extensions::DependencyInjection::IServiceCollection ^ RemoveAllKeyed(Microsoft::Extensions::DependencyInjection::IServiceCollection ^ collection, System::Object ^ serviceKey);
public static Microsoft.Extensions.DependencyInjection.IServiceCollection RemoveAllKeyed<T> (this Microsoft.Extensions.DependencyInjection.IServiceCollection collection, object? serviceKey);
static member RemoveAllKeyed : Microsoft.Extensions.DependencyInjection.IServiceCollection * obj -> Microsoft.Extensions.DependencyInjection.IServiceCollection
<Extension()>
Public Function RemoveAllKeyed(Of T) (collection As IServiceCollection, serviceKey As Object) As IServiceCollection
Parâmetros de tipo
- T
Parâmetros
- collection
- IServiceCollection
- serviceKey
- Object
A chave de serviço.
Retornos
O IServiceCollection para encadeamento.