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

適用対象