ServiceCollectionDescriptorExtensions.RemoveAll Metoda

Definice

Přetížení

RemoveAll(IServiceCollection, Type)

Odebere všechny služby typu serviceType v IServiceCollectionnástroji .

RemoveAll<T>(IServiceCollection)

Odebere všechny služby typu T v IServiceCollectionnástroji .

RemoveAll(IServiceCollection, Type)

Zdroj:
ServiceCollectionDescriptorExtensions.cs
Zdroj:
ServiceCollectionDescriptorExtensions.cs
Zdroj:
ServiceCollectionDescriptorExtensions.cs
Zdroj:
ServiceCollectionDescriptorExtensions.cs
Zdroj:
ServiceCollectionDescriptorExtensions.cs

Odebere všechny služby typu serviceType v IServiceCollectionnástroji .

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 služby, který chcete odebrat.

Návraty

Pro IServiceCollection řetězení.

Platí pro

RemoveAll<T>(IServiceCollection)

Zdroj:
ServiceCollectionDescriptorExtensions.cs
Zdroj:
ServiceCollectionDescriptorExtensions.cs
Zdroj:
ServiceCollectionDescriptorExtensions.cs
Zdroj:
ServiceCollectionDescriptorExtensions.cs
Zdroj:
ServiceCollectionDescriptorExtensions.cs

Odebere všechny služby typu T v IServiceCollectionnástroji .

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

Návraty

Pro IServiceCollection řetězení.

Platí pro