Udostępnij za pośrednictwem


ServiceCollectionDescriptorExtensions.RemoveAll Metoda

Definicja

Przeciążenia

RemoveAll(IServiceCollection, Type)

Usuwa wszystkie usługi typu serviceType w obiekcie IServiceCollection.

RemoveAll<T>(IServiceCollection)

Usuwa wszystkie usługi typu T w obiekcie IServiceCollection.

RemoveAll(IServiceCollection, Type)

Źródło:
ServiceCollectionDescriptorExtensions.cs
Źródło:
ServiceCollectionDescriptorExtensions.cs
Źródło:
ServiceCollectionDescriptorExtensions.cs
Źródło:
ServiceCollectionDescriptorExtensions.cs
Źródło:
ServiceCollectionDescriptorExtensions.cs

Usuwa wszystkie usługi typu serviceType w obiekcie 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

Parametry

serviceType
Type

Typ usługi do usunięcia.

Zwraca

Element IServiceCollection do tworzenia łańcucha.

Dotyczy

RemoveAll<T>(IServiceCollection)

Źródło:
ServiceCollectionDescriptorExtensions.cs
Źródło:
ServiceCollectionDescriptorExtensions.cs
Źródło:
ServiceCollectionDescriptorExtensions.cs
Źródło:
ServiceCollectionDescriptorExtensions.cs
Źródło:
ServiceCollectionDescriptorExtensions.cs

Usuwa wszystkie usługi typu T w obiekcie 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

Parametry typu

T

Parametry

Zwraca

Element IServiceCollection do tworzenia łańcucha.

Dotyczy