ServiceCollectionDescriptorExtensions.RemoveAllKeyed Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Surcharges
RemoveAllKeyed(IServiceCollection, Type, Object) |
Supprime tous les services de type |
RemoveAllKeyed<T>(IServiceCollection, Object) |
Supprime tous les services de type |
RemoveAllKeyed(IServiceCollection, Type, Object)
Supprime tous les services de type serviceType
dans 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
Paramètres
- collection
- IServiceCollection
L’IServiceCollectionopérateur
- serviceType
- Type
Type de service à supprimer.
- serviceKey
- Object
Clé de service.
Retours
IServiceCollection pour le chaînage.
S’applique à
RemoveAllKeyed<T>(IServiceCollection, Object)
Supprime tous les services de type T
dans 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
Paramètres de type
- T
Paramètres
- collection
- IServiceCollection
- serviceKey
- Object
Clé de service.
Retours
IServiceCollection pour le chaînage.