Freigeben über


ServiceCollectionDescriptorExtensions.RemoveAll Methode

Definition

Überlädt

RemoveAll(IServiceCollection, Type)

Entfernt alle Dienste vom Typ serviceType in IServiceCollection.

RemoveAll<T>(IServiceCollection)

Entfernt alle Dienste vom Typ T in IServiceCollection.

RemoveAll(IServiceCollection, Type)

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

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

Parameter

serviceType
Type

Der zu entfernende Diensttyp.

Gibt zurück

Die IServiceCollection für die Verkettung.

Gilt für:

RemoveAll<T>(IServiceCollection)

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

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

Typparameter

T

Parameter

Gibt zurück

Die IServiceCollection für die Verkettung.

Gilt für: