ServiceCollectionDescriptorExtensions.RemoveAllKeyed Método

Definição

Sobrecargas

RemoveAllKeyed(IServiceCollection, Type, Object)

Remove todos os serviços do tipo serviceType na collection.

RemoveAllKeyed<T>(IServiceCollection, Object)

Remove todos os serviços do tipo T na collection.

RemoveAllKeyed(IServiceCollection, Type, Object)

Origem:
ServiceCollectionDescriptorExtensions.Keyed.cs
Origem:
ServiceCollectionDescriptorExtensions.Keyed.cs
Origem:
ServiceCollectionDescriptorExtensions.Keyed.cs
Origem:
ServiceCollectionDescriptorExtensions.Keyed.cs

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

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)

Origem:
ServiceCollectionDescriptorExtensions.Keyed.cs
Origem:
ServiceCollectionDescriptorExtensions.Keyed.cs
Origem:
ServiceCollectionDescriptorExtensions.Keyed.cs
Origem:
ServiceCollectionDescriptorExtensions.Keyed.cs

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

serviceKey
Object

A chave de serviço.

Retornos

O IServiceCollection para encadeamento.

Aplica-se a