ServiceCollectionDescriptorExtensions.RemoveAllKeyed Metodo
Definizione
Importante
Alcune informazioni sono relative alla release non definitiva del prodotto, che potrebbe subire modifiche significative prima della release definitiva. Microsoft non riconosce alcuna garanzia, espressa o implicita, in merito alle informazioni qui fornite.
Overload
RemoveAllKeyed(IServiceCollection, Type, Object) |
Rimuove tutti i servizi di tipo |
RemoveAllKeyed<T>(IServiceCollection, Object) |
Rimuove tutti i servizi di tipo |
RemoveAllKeyed(IServiceCollection, Type, Object)
Rimuove tutti i servizi di tipo serviceType
in 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
Parametri
- collection
- IServiceCollection
Oggetto IServiceCollection.
- serviceType
- Type
Tipo di servizio da rimuovere.
- serviceKey
- Object
Chiave di servizio.
Restituisce
Oggetto IServiceCollection per il concatenamento.
Si applica a
RemoveAllKeyed<T>(IServiceCollection, Object)
Rimuove tutti i servizi di tipo T
in 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
Parametri di tipo
- T
Parametri
- collection
- IServiceCollection
Oggetto IServiceCollection.
- serviceKey
- Object
Chiave di servizio.
Restituisce
Oggetto IServiceCollection per il concatenamento.