Partilhar via


ServiceCollectionDescriptorExtensions.RemoveAll Método

Definição

Sobrecargas

RemoveAll(IServiceCollection, Type)

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

RemoveAll<T>(IServiceCollection)

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

RemoveAll(IServiceCollection, Type)

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

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

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::Extensions::DependencyInjection::IServiceCollection ^ RemoveAll(Microsoft::Extensions::DependencyInjection::IServiceCollection ^ collection, Type ^ serviceType);
public static Microsoft.Extensions.DependencyInjection.IServiceCollection RemoveAll (this Microsoft.Extensions.DependencyInjection.IServiceCollection collection, Type serviceType);
static member RemoveAll : Microsoft.Extensions.DependencyInjection.IServiceCollection * Type -> Microsoft.Extensions.DependencyInjection.IServiceCollection
<Extension()>
Public Function RemoveAll (collection As IServiceCollection, serviceType As Type) As IServiceCollection

Parâmetros

serviceType
Type

O tipo de serviço a ser removido.

Retornos

O IServiceCollection para encadeamento.

Aplica-se a

RemoveAll<T>(IServiceCollection)

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

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

public:
generic <typename T>
[System::Runtime::CompilerServices::Extension]
 static Microsoft::Extensions::DependencyInjection::IServiceCollection ^ RemoveAll(Microsoft::Extensions::DependencyInjection::IServiceCollection ^ collection);
public static Microsoft.Extensions.DependencyInjection.IServiceCollection RemoveAll<T> (this Microsoft.Extensions.DependencyInjection.IServiceCollection collection);
static member RemoveAll : Microsoft.Extensions.DependencyInjection.IServiceCollection -> Microsoft.Extensions.DependencyInjection.IServiceCollection
<Extension()>
Public Function RemoveAll(Of T) (collection As IServiceCollection) As IServiceCollection

Parâmetros de tipo

T

Parâmetros

Retornos

O IServiceCollection para encadeamento.

Aplica-se a