ServiceCollectionDescriptorExtensions.RemoveAll Метод

Определение

Перегрузки

RemoveAll(IServiceCollection, Type)

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

RemoveAll<T>(IServiceCollection)

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

RemoveAll(IServiceCollection, Type)

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

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

Параметры

serviceType
Type

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

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

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

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

RemoveAll<T>(IServiceCollection)

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

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

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

T

Параметры

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

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

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