ServiceCollectionDescriptorExtensions.RemoveAll 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
RemoveAll(IServiceCollection, Type) |
Rimuove tutti i servizi di tipo |
RemoveAll<T>(IServiceCollection) |
Rimuove tutti i servizi di tipo |
RemoveAll(IServiceCollection, Type)
Rimuove tutti i servizi di tipo serviceType
in 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
Parametri
- collection
- IServiceCollection
Oggetto IServiceCollection.
- serviceType
- Type
Tipo di servizio da rimuovere.
Restituisce
Oggetto IServiceCollection per il concatenamento.
Si applica a
RemoveAll<T>(IServiceCollection)
Rimuove tutti i servizi di tipo T
in 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
Parametri di tipo
- T
Parametri
- collection
- IServiceCollection
Oggetto IServiceCollection.
Restituisce
Oggetto IServiceCollection per il concatenamento.