ServiceCollectionDescriptorExtensions.RemoveAll Método

Definición

Sobrecargas

RemoveAll(IServiceCollection, Type)

Quita todos los servicios de tipo serviceType en IServiceCollection.

RemoveAll<T>(IServiceCollection)

Quita todos los servicios de tipo T en IServiceCollection.

RemoveAll(IServiceCollection, Type)

Source:
ServiceCollectionDescriptorExtensions.cs
Source:
ServiceCollectionDescriptorExtensions.cs

Quita todos los servicios de tipo serviceType en 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

El tipo de servicio que se va a quitar.

Devoluciones

La interfaz IServiceCollection para el encadenamiento.

Se aplica a

RemoveAll<T>(IServiceCollection)

Source:
ServiceCollectionDescriptorExtensions.cs
Source:
ServiceCollectionDescriptorExtensions.cs

Quita todos los servicios de tipo T en 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

collection
IServiceCollection

El parámetro de cadena de consulta IServiceCollection.

Devoluciones

La interfaz IServiceCollection para el encadenamiento.

Se aplica a