次の方法で共有


ServiceCollectionDescriptorExtensions.RemoveAll メソッド

定義

オーバーロード

RemoveAll(IServiceCollection, Type)

種類が serviceType のサービスをすべて IServiceCollection で削除します。

RemoveAll<T>(IServiceCollection)

種類が T のサービスをすべて IServiceCollection で削除します。

RemoveAll(IServiceCollection, Type)

ソース:
ServiceCollectionDescriptorExtensions.cs
ソース:
ServiceCollectionDescriptorExtensions.cs
ソース:
ServiceCollectionDescriptorExtensions.cs
ソース:
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
ソース:
ServiceCollectionDescriptorExtensions.cs
ソース:
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

適用対象