Поделиться через


ServiceCollectionDescriptorExtensions.RemoveAllKeyed Метод

Определение

Перегрузки

RemoveAllKeyed(IServiceCollection, Type, Object)

Удаляет все службы типа serviceType в collection.

RemoveAllKeyed<T>(IServiceCollection, Object)

Удаляет все службы типа T в collection.

RemoveAllKeyed(IServiceCollection, Type, Object)

Исходный код:
ServiceCollectionDescriptorExtensions.Keyed.cs
Исходный код:
ServiceCollectionDescriptorExtensions.Keyed.cs
Исходный код:
ServiceCollectionDescriptorExtensions.Keyed.cs
Исходный код:
ServiceCollectionDescriptorExtensions.Keyed.cs

Удаляет все службы типа serviceType в 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

Параметры

serviceType
Type

Удаляемый тип службы.

serviceKey
Object

Ключ службы.

Возвращаемое значение

IServiceCollection для построения цепочки.

Применяется к

RemoveAllKeyed<T>(IServiceCollection, Object)

Исходный код:
ServiceCollectionDescriptorExtensions.Keyed.cs
Исходный код:
ServiceCollectionDescriptorExtensions.Keyed.cs
Исходный код:
ServiceCollectionDescriptorExtensions.Keyed.cs
Исходный код:
ServiceCollectionDescriptorExtensions.Keyed.cs

Удаляет все службы типа T в 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

Параметры типа

T

Параметры

serviceKey
Object

Ключ службы.

Возвращаемое значение

IServiceCollection для построения цепочки.

Применяется к