Freigeben über


ServiceCollectionDescriptorExtensions.RemoveAllKeyed Methode

Definition

Überlädt

RemoveAllKeyed(IServiceCollection, Type, Object)

Entfernt alle Dienste vom Typ serviceType in collection.

RemoveAllKeyed<T>(IServiceCollection, Object)

Entfernt alle Dienste vom Typ T in collection.

RemoveAllKeyed(IServiceCollection, Type, Object)

Quelle:
ServiceCollectionDescriptorExtensions.Keyed.cs
Quelle:
ServiceCollectionDescriptorExtensions.Keyed.cs
Quelle:
ServiceCollectionDescriptorExtensions.Keyed.cs
Quelle:
ServiceCollectionDescriptorExtensions.Keyed.cs

Entfernt alle Dienste vom Typ 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

Parameter

serviceType
Type

Der zu entfernende Diensttyp.

serviceKey
Object

Der Dienstschlüssel.

Gibt zurück

Die IServiceCollection für die Verkettung.

Gilt für:

RemoveAllKeyed<T>(IServiceCollection, Object)

Quelle:
ServiceCollectionDescriptorExtensions.Keyed.cs
Quelle:
ServiceCollectionDescriptorExtensions.Keyed.cs
Quelle:
ServiceCollectionDescriptorExtensions.Keyed.cs
Quelle:
ServiceCollectionDescriptorExtensions.Keyed.cs

Entfernt alle Dienste vom Typ 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

Typparameter

T

Parameter

serviceKey
Object

Der Dienstschlüssel.

Gibt zurück

Die IServiceCollection für die Verkettung.

Gilt für: