ServiceCollectionDescriptorExtensions.RemoveAll Método
Definición
Importante
Parte de la información hace referencia a la versión preliminar del producto, que puede haberse modificado sustancialmente antes de lanzar la versión definitiva. Microsoft no otorga ninguna garantía, explícita o implícita, con respecto a la información proporcionada aquí.
Sobrecargas
RemoveAll(IServiceCollection, Type) |
Quita todos los servicios de tipo |
RemoveAll<T>(IServiceCollection) |
Quita todos los servicios de tipo |
RemoveAll(IServiceCollection, Type)
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
- collection
- IServiceCollection
- serviceType
- Type
El tipo de servicio que se va a quitar.
Devoluciones
La interfaz IServiceCollection para el encadenamiento.
Se aplica a
RemoveAll<T>(IServiceCollection)
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.