ServiceCollectionDescriptorExtensions.RemoveAllKeyed Metodo

Definizione

Overload

RemoveAllKeyed(IServiceCollection, Type, Object)

Rimuove tutti i servizi di tipo serviceType in collection.

RemoveAllKeyed<T>(IServiceCollection, Object)

Rimuove tutti i servizi di tipo T in collection.

RemoveAllKeyed(IServiceCollection, Type, Object)

Origine:
ServiceCollectionDescriptorExtensions.Keyed.cs
Origine:
ServiceCollectionDescriptorExtensions.Keyed.cs
Origine:
ServiceCollectionDescriptorExtensions.Keyed.cs
Origine:
ServiceCollectionDescriptorExtensions.Keyed.cs

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

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)

Origine:
ServiceCollectionDescriptorExtensions.Keyed.cs
Origine:
ServiceCollectionDescriptorExtensions.Keyed.cs
Origine:
ServiceCollectionDescriptorExtensions.Keyed.cs
Origine:
ServiceCollectionDescriptorExtensions.Keyed.cs

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

serviceKey
Object

Chiave di servizio.

Restituisce

Oggetto IServiceCollection per il concatenamento.

Si applica a