ServiceCollectionDescriptorExtensions.RemoveAllKeyed Metoda

Definicja

Przeciążenia

RemoveAllKeyed(IServiceCollection, Type, Object)

Usuwa wszystkie usługi typu serviceType w obiekcie collection.

RemoveAllKeyed<T>(IServiceCollection, Object)

Usuwa wszystkie usługi typu T w obiekcie collection.

RemoveAllKeyed(IServiceCollection, Type, Object)

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

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

Parametry

serviceType
Type

Typ usługi do usunięcia.

serviceKey
Object

Klucz usługi.

Zwraca

Element IServiceCollection do tworzenia łańcucha.

Dotyczy

RemoveAllKeyed<T>(IServiceCollection, Object)

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

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

Parametry typu

T

Parametry

serviceKey
Object

Klucz usługi.

Zwraca

Element IServiceCollection do tworzenia łańcucha.

Dotyczy