- ServiceCollectionDescriptorExtensions - Add(IServiceCollection, ServiceDescriptor) 
- Add(IServiceCollection, IEnumerable<ServiceDescriptor>) 
- RemoveAll(IServiceCollection, Type) 
- RemoveAll<T>(IServiceCollection) 
- RemoveAllKeyed(IServiceCollection, Type, Object) 
- RemoveAllKeyed<T>(IServiceCollection, Object) 
- Replace(IServiceCollection, ServiceDescriptor) 
- TryAdd(IServiceCollection, ServiceDescriptor) 
- TryAdd(IServiceCollection, IEnumerable<ServiceDescriptor>) 
- TryAddEnumerable(IServiceCollection, ServiceDescriptor) 
- TryAddEnumerable(IServiceCollection, IEnumerable<ServiceDescriptor>) 
- TryAddKeyedScoped(IServiceCollection, Type, Object) 
- TryAddKeyedScoped(IServiceCollection, Type, Object, Type) 
- TryAddKeyedScoped<TService>(IServiceCollection, Object) 
- TryAddKeyedScoped<TService>(IServiceCollection, Object, Func<IServiceProvider, Object, TService>) 
- TryAddKeyedScoped<TService, TImplementation>(IServiceCollection, Object) 
- TryAddKeyedScoped(IServiceCollection, Type, Object, Func<IServiceProvider, Object, Object>) 
- TryAddKeyedSingleton(IServiceCollection, Type, Object) 
- TryAddKeyedSingleton(IServiceCollection, Type, Object, Type) 
- TryAddKeyedSingleton<TService>(IServiceCollection, Object) 
- TryAddKeyedSingleton<TService>(IServiceCollection, Object, TService) 
- TryAddKeyedSingleton<TService>(IServiceCollection, Object, Func<IServiceProvider, Object, TService>) 
- TryAddKeyedSingleton<TService, TImplementation>(IServiceCollection, Object) 
- TryAddKeyedSingleton(IServiceCollection, Type, Object, Func<IServiceProvider, Object, Object>) 
- TryAddKeyedTransient(IServiceCollection, Type, Object) 
- TryAddKeyedTransient(IServiceCollection, Type, Object, Type) 
- TryAddKeyedTransient<TService>(IServiceCollection, Object) 
- TryAddKeyedTransient<TService>(IServiceCollection, Object, Func<IServiceProvider, Object, TService>) 
- TryAddKeyedTransient<TService, TImplementation>(IServiceCollection, Object) 
- TryAddKeyedTransient(IServiceCollection, Type, Object, Func<IServiceProvider, Object, Object>) 
- TryAddScoped(IServiceCollection, Type) 
- TryAddScoped(IServiceCollection, Type, Type) 
- TryAddScoped<TService>(IServiceCollection) 
- TryAddScoped<TService>(IServiceCollection, Func<IServiceProvider, TService>) 
- TryAddScoped<TService, TImplementation>(IServiceCollection) 
- TryAddScoped(IServiceCollection, Type, Func<IServiceProvider, Object>) 
- TryAddSingleton(IServiceCollection, Type) 
- TryAddSingleton(IServiceCollection, Type, Type) 
- TryAddSingleton<TService>(IServiceCollection) 
- TryAddSingleton<TService>(IServiceCollection, TService) 
- TryAddSingleton<TService>(IServiceCollection, Func<IServiceProvider, TService>) 
- TryAddSingleton<TService, TImplementation>(IServiceCollection) 
- TryAddSingleton(IServiceCollection, Type, Func<IServiceProvider, Object>) 
- TryAddTransient(IServiceCollection, Type) 
- TryAddTransient(IServiceCollection, Type, Type) 
- TryAddTransient<TService>(IServiceCollection) 
- TryAddTransient<TService>(IServiceCollection, Func<IServiceProvider, TService>) 
- TryAddTransient<TService, TImplementation>(IServiceCollection) 
- TryAddTransient(IServiceCollection, Type, Func<IServiceProvider, Object>) 
 
net7.0
    namespace Microsoft.Extensions.DependencyInjection.Extensions
{
    public static class ServiceCollectionDescriptorExtensions
    {
        public static void TryAddTransient(this IServiceCollection! collection, Type! service, [DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicConstructors)] Type! implementationType);
    }
}
            | nuget.org | 0.2 % Reference this API | 
|---|---|
| Upgrade Planner | 0.0 % Reference this API | 
| .NET | 5.06.07.08.09.010.0 | 
| .NET Core | 2.02.12.23.03.1 | 
| .NET Framework | 4.6.14.6.24.74.7.14.7.24.84.8.1 | 
| .NET Standard | 2.02.1 | 
| Information specific to net7.0 | |
| Assembly | Microsoft.Extensions.DependencyInjection.Abstractions , Version=7.0.0.0, PublicKeyToken=adb9793829ddae60 | 
| Referencing | Requires any: 
 | 
| Platform Restrictions | This API is supported on all platforms. | 
- Built-in API
- Package-provided API