ServiceCollectionDescriptorExtensions.RemoveAllKeyed Metoda

Definice

Přetížení

RemoveAllKeyed(IServiceCollection, Type, Object)

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

RemoveAllKeyed<T>(IServiceCollection, Object)

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

RemoveAllKeyed(IServiceCollection, Type, Object)

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

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

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

Parametry

serviceType
Type

Typ služby, který chcete odebrat.

serviceKey
Object

Klíč služby.

Návraty

Pro IServiceCollection řetězení.

Platí pro

RemoveAllKeyed<T>(IServiceCollection, Object)

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

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

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

Parametry typu

T

Parametry

serviceKey
Object

Klíč služby.

Návraty

Pro IServiceCollection řetězení.

Platí pro