ServiceCollectionDescriptorExtensions.Add ServiceCollectionDescriptorExtensions.Add ServiceCollectionDescriptorExtensions.Add Method

Definition

Overloads

Add(IServiceCollection, ServiceDescriptor) Add(IServiceCollection, ServiceDescriptor) Add(IServiceCollection, ServiceDescriptor)

Adds the specified descriptor to the collection.

Add(IServiceCollection, IEnumerable<ServiceDescriptor>) Add(IServiceCollection, IEnumerable<ServiceDescriptor>) Add(IServiceCollection, IEnumerable<ServiceDescriptor>)

Adds a sequence of ServiceDescriptor to the collection.

Add(IServiceCollection, ServiceDescriptor) Add(IServiceCollection, ServiceDescriptor) Add(IServiceCollection, ServiceDescriptor)

Adds the specified descriptor to the collection.

public static Microsoft.Extensions.DependencyInjection.IServiceCollection Add (this Microsoft.Extensions.DependencyInjection.IServiceCollection collection, Microsoft.Extensions.DependencyInjection.ServiceDescriptor descriptor);
static member Add : Microsoft.Extensions.DependencyInjection.IServiceCollection * Microsoft.Extensions.DependencyInjection.ServiceDescriptor -> Microsoft.Extensions.DependencyInjection.IServiceCollection
<Extension()>
Public Function Add (collection As IServiceCollection, descriptor As ServiceDescriptor) As IServiceCollection

Parameters

Returns

Add(IServiceCollection, IEnumerable<ServiceDescriptor>) Add(IServiceCollection, IEnumerable<ServiceDescriptor>) Add(IServiceCollection, IEnumerable<ServiceDescriptor>)

Adds a sequence of ServiceDescriptor to the collection.

public static Microsoft.Extensions.DependencyInjection.IServiceCollection Add (this Microsoft.Extensions.DependencyInjection.IServiceCollection collection, System.Collections.Generic.IEnumerable<Microsoft.Extensions.DependencyInjection.ServiceDescriptor> descriptors);
static member Add : Microsoft.Extensions.DependencyInjection.IServiceCollection * seq<Microsoft.Extensions.DependencyInjection.ServiceDescriptor> -> Microsoft.Extensions.DependencyInjection.IServiceCollection
<Extension()>
Public Function Add (collection As IServiceCollection, descriptors As IEnumerable(Of ServiceDescriptor)) As IServiceCollection

Parameters

descriptors
IEnumerable<ServiceDescriptor>

The ServiceDescriptors to add.

Returns

Applies to