다음을 통해 공유


ServiceCollectionDescriptorExtensions.RemoveAll 메서드

정의

오버로드

RemoveAll(IServiceCollection, Type)

IServiceCollection에서 serviceType 형식의 모든 서비스를 제거합니다.

RemoveAll<T>(IServiceCollection)

IServiceCollection에서 T 형식의 모든 서비스를 제거합니다.

RemoveAll(IServiceCollection, Type)

Source:
ServiceCollectionDescriptorExtensions.cs
Source:
ServiceCollectionDescriptorExtensions.cs

IServiceCollection에서 serviceType 형식의 모든 서비스를 제거합니다.

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)

Source:
ServiceCollectionDescriptorExtensions.cs
Source:
ServiceCollectionDescriptorExtensions.cs

IServiceCollection에서 T 형식의 모든 서비스를 제거합니다.

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입니다.

적용 대상