ServiceCollectionDescriptorExtensions.RemoveAllKeyed 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
RemoveAllKeyed(IServiceCollection, Type, Object) |
Quita todos los servicios de tipo |
RemoveAllKeyed<T>(IServiceCollection, Object) |
Quita todos los servicios de tipo |
RemoveAllKeyed(IServiceCollection, Type, Object)
Quita todos los servicios de tipo serviceType
en 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
El tipo de servicio que se va a quitar.
- serviceKey
- Object
Clave de servicio.
Devoluciones
La interfaz IServiceCollection para el encadenamiento.
Se aplica a
RemoveAllKeyed<T>(IServiceCollection, Object)
Quita todos los servicios de tipo T
en 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
El parámetro de cadena de consulta IServiceCollection.
- serviceKey
- Object
Clave de servicio.
Devoluciones
La interfaz IServiceCollection para el encadenamiento.