Language

ServiceCollectionDescriptorExtensions クラス

定義

IServiceCollectionにサービスを追加および削除するための拡張メソッド。

public ref class ServiceCollectionDescriptorExtensions abstract sealed
public static class ServiceCollectionDescriptorExtensions
type ServiceCollectionDescriptorExtensions = class
Public Module ServiceCollectionDescriptorExtensions
継承
ServiceCollectionDescriptorExtensions

メソッド

名前 説明
Add(IServiceCollection, IEnumerable<ServiceDescriptor>)

ServiceDescriptorに一連のcollectionを追加します。

Add(IServiceCollection, ServiceDescriptor)

指定した descriptor を collectionに追加します。

RemoveAll(IServiceCollection, Type)

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

RemoveAll<T>(IServiceCollection)

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

RemoveAllKeyed(IServiceCollection, Type, Object)

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

RemoveAllKeyed<T>(IServiceCollection, Object)

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

Replace(IServiceCollection, ServiceDescriptor)

IServiceCollectionと同じサービスの種類を持つdescriptorの最初のサービスを削除し、コレクションにdescriptorを追加します。

TryAdd(IServiceCollection, IEnumerable<ServiceDescriptor>)

サービスの種類がまだ登録されていない場合は、指定した descriptors を collection に追加します。

TryAdd(IServiceCollection, ServiceDescriptor)

サービスの種類がまだ登録されていない場合は、指定した descriptor を collection に追加します。

TryAddEnumerable(IServiceCollection, IEnumerable<ServiceDescriptor>)

同じServiceDescriptorを持つ既存の記述子と、ServiceTypeにまだ存在しない実装がある場合は、指定したservicesを追加します。

TryAddEnumerable(IServiceCollection, ServiceDescriptor)

同じServiceDescriptorを持つ既存の記述子と、ServiceTypeにまだ存在しない実装がある場合は、servicesを追加します。

TryAddKeyedScoped(IServiceCollection, Type, Object, Func<IServiceProvider,Object,Object>)

serviceで指定されたファクトリを使用して、指定したScopedをimplementationFactory サービスとしてcollectionに追加します (サービスの種類がまだ登録されていない場合)。

TryAddKeyedScoped(IServiceCollection, Type, Object, Type)

サービスの種類がまだ登録されていない場合は、指定したserviceをScoped実装を持つimplementationType サービスとしてcollectionに追加します。

TryAddKeyedScoped(IServiceCollection, Type, Object)

指定した service を Scoped サービスとして collection に追加します (サービスの種類がまだ登録されていない場合)。

TryAddKeyedScoped<TService,TImplementation>(IServiceCollection, Object)

サービスの種類がまだ登録されていない場合は、指定したTServiceをScopedで指定したTImplementation サービス実装型としてcollectionに追加します。

TryAddKeyedScoped<TService>(IServiceCollection, Object, Func<IServiceProvider,Object,TService>)

TServiceで指定されたファクトリを使用して、指定したScopedをimplementationFactory サービスとしてservicesに追加します (サービスの種類がまだ登録されていない場合)。

TryAddKeyedScoped<TService>(IServiceCollection, Object)

指定した TService を Scoped サービスとして collection に追加します (サービスの種類がまだ登録されていない場合)。

TryAddKeyedSingleton(IServiceCollection, Type, Object, Func<IServiceProvider,Object,Object>)

serviceで指定されたファクトリを使用して、指定したSingletonをimplementationFactory サービスとしてcollectionに追加します (サービスの種類がまだ登録されていない場合)。

TryAddKeyedSingleton(IServiceCollection, Type, Object, Type)

サービスの種類がまだ登録されていない場合は、指定したserviceをSingleton実装を持つimplementationType サービスとしてcollectionに追加します。

TryAddKeyedSingleton(IServiceCollection, Type, Object)

指定した service を Singleton サービスとして collection に追加します (サービスの種類がまだ登録されていない場合)。

TryAddKeyedSingleton<TService,TImplementation>(IServiceCollection, Object)

サービスの種類がまだ登録されていない場合は、指定したTServiceをSingletonで指定したTImplementation サービス実装型としてcollectionに追加します。

TryAddKeyedSingleton<TService>(IServiceCollection, Object, Func<IServiceProvider,Object,TService>)

TServiceで指定されたファクトリを使用して、指定したSingletonをimplementationFactory サービスとしてservicesに追加します (サービスの種類がまだ登録されていない場合)。

TryAddKeyedSingleton<TService>(IServiceCollection, Object, TService)

サービスの種類がまだ登録されていない場合は、TService で指定されたインスタンスを持つSingleton サービスとして、指定したinstanceをcollectionに追加します。

TryAddKeyedSingleton<TService>(IServiceCollection, Object)

指定した TService を Singleton サービスとして collection に追加します (サービスの種類がまだ登録されていない場合)。

TryAddKeyedTransient(IServiceCollection, Type, Object, Func<IServiceProvider,Object,Object>)

serviceで指定されたファクトリを使用して、指定したTransientをimplementationFactory サービスとしてcollectionに追加します (サービスの種類がまだ登録されていない場合)。

TryAddKeyedTransient(IServiceCollection, Type, Object, Type)

サービスの種類がまだ登録されていない場合は、指定したserviceをTransient実装を持つimplementationType サービスとしてcollectionに追加します。

TryAddKeyedTransient(IServiceCollection, Type, Object)

指定した service を Transient サービスとして collection に追加します (サービスの種類がまだ登録されていない場合)。

TryAddKeyedTransient<TService,TImplementation>(IServiceCollection, Object)

サービスの種類がまだ登録されていない場合は、指定したTServiceをTransientで指定したTImplementation サービス実装型としてcollectionに追加します。

TryAddKeyedTransient<TService>(IServiceCollection, Object, Func<IServiceProvider,Object,TService>)

TServiceで指定されたファクトリを使用して、指定したTransientをimplementationFactory サービスとしてservicesに追加します (サービスの種類がまだ登録されていない場合)。

TryAddKeyedTransient<TService>(IServiceCollection, Object)

指定した TService を Transient サービスとして collection に追加します (サービスの種類がまだ登録されていない場合)。

TryAddScoped(IServiceCollection, Type, Func<IServiceProvider,Object>)

serviceで指定されたファクトリを使用して、指定したScopedをimplementationFactory サービスとしてcollectionに追加します (サービスの種類がまだ登録されていない場合)。

TryAddScoped(IServiceCollection, Type, Type)

サービスの種類がまだ登録されていない場合は、指定したserviceをScoped実装を持つimplementationType サービスとしてcollectionに追加します。

TryAddScoped(IServiceCollection, Type)

指定した service を Scoped サービスとして collection に追加します (サービスの種類がまだ登録されていない場合)。

TryAddScoped<TService,TImplementation>(IServiceCollection)

サービスの種類がまだ登録されていない場合は、指定したTServiceをScopedで指定したTImplementation サービス実装型としてcollectionに追加します。

TryAddScoped<TService>(IServiceCollection, Func<IServiceProvider,TService>)

TServiceで指定されたファクトリを使用して、指定したScopedをimplementationFactory サービスとしてservicesに追加します (サービスの種類がまだ登録されていない場合)。

TryAddScoped<TService>(IServiceCollection)

指定した TService を Scoped サービスとして collection に追加します (サービスの種類がまだ登録されていない場合)。

TryAddSingleton(IServiceCollection, Type, Func<IServiceProvider,Object>)

serviceで指定されたファクトリを使用して、指定したSingletonをimplementationFactory サービスとしてcollectionに追加します (サービスの種類がまだ登録されていない場合)。

TryAddSingleton(IServiceCollection, Type, Type)

サービスの種類がまだ登録されていない場合は、指定したserviceをSingleton実装を持つimplementationType サービスとしてcollectionに追加します。

TryAddSingleton(IServiceCollection, Type)

指定した service を Singleton サービスとして collection に追加します (サービスの種類がまだ登録されていない場合)。

TryAddSingleton<TService,TImplementation>(IServiceCollection)

サービスの種類がまだ登録されていない場合は、指定したTServiceをSingletonで指定したTImplementation サービス実装型としてcollectionに追加します。

TryAddSingleton<TService>(IServiceCollection, Func<IServiceProvider,TService>)

TServiceで指定されたファクトリを使用して、指定したSingletonをimplementationFactory サービスとしてservicesに追加します (サービスの種類がまだ登録されていない場合)。

TryAddSingleton<TService>(IServiceCollection, TService)

サービスの種類がまだ登録されていない場合は、TService で指定されたインスタンスを持つSingleton サービスとして、指定したinstanceをcollectionに追加します。

TryAddSingleton<TService>(IServiceCollection)

指定した TService を Singleton サービスとして collection に追加します (サービスの種類がまだ登録されていない場合)。

TryAddTransient(IServiceCollection, Type, Func<IServiceProvider,Object>)

serviceで指定されたファクトリを使用して、指定したTransientをimplementationFactory サービスとしてcollectionに追加します (サービスの種類がまだ登録されていない場合)。

TryAddTransient(IServiceCollection, Type, Type)

サービスの種類がまだ登録されていない場合は、指定したserviceをTransient実装を持つimplementationType サービスとしてcollectionに追加します。

TryAddTransient(IServiceCollection, Type)

指定した service を Transient サービスとして collection に追加します (サービスの種類がまだ登録されていない場合)。

TryAddTransient<TService,TImplementation>(IServiceCollection)

サービスの種類がまだ登録されていない場合は、指定したTServiceをTransientで指定したTImplementation サービス実装型としてcollectionに追加します。

TryAddTransient<TService>(IServiceCollection, Func<IServiceProvider,TService>)

TServiceで指定されたファクトリを使用して、指定したTransientをimplementationFactory サービスとしてservicesに追加します (サービスの種類がまだ登録されていない場合)。

TryAddTransient<TService>(IServiceCollection)

指定した TService を Transient サービスとして collection に追加します (サービスの種類がまだ登録されていない場合)。

適用対象