ServiceCollectionDescriptorExtensions.Add Método

Definição

Sobrecargas

Add(IServiceCollection, ServiceDescriptor)

Adiciona o descriptor especificado ao collection.

Add(IServiceCollection, IEnumerable<ServiceDescriptor>)

Adiciona uma sequência de ServiceDescriptor à collection.

Add(IServiceCollection, ServiceDescriptor)

Origem:
ServiceCollectionDescriptorExtensions.cs
Origem:
ServiceCollectionDescriptorExtensions.cs
Origem:
ServiceCollectionDescriptorExtensions.cs
Origem:
ServiceCollectionDescriptorExtensions.cs
Origem:
ServiceCollectionDescriptorExtensions.cs

Adiciona o descriptor especificado ao collection.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::Extensions::DependencyInjection::IServiceCollection ^ Add(Microsoft::Extensions::DependencyInjection::IServiceCollection ^ collection, Microsoft::Extensions::DependencyInjection::ServiceDescriptor ^ descriptor);
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

Parâmetros

descriptor
ServiceDescriptor

O ServiceDescriptor a ser adicionado.

Retornos

Uma referência à instância atual de IServiceCollection.

Aplica-se a

Add(IServiceCollection, IEnumerable<ServiceDescriptor>)

Origem:
ServiceCollectionDescriptorExtensions.cs
Origem:
ServiceCollectionDescriptorExtensions.cs
Origem:
ServiceCollectionDescriptorExtensions.cs
Origem:
ServiceCollectionDescriptorExtensions.cs
Origem:
ServiceCollectionDescriptorExtensions.cs

Adiciona uma sequência de ServiceDescriptor à collection.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::Extensions::DependencyInjection::IServiceCollection ^ Add(Microsoft::Extensions::DependencyInjection::IServiceCollection ^ collection, System::Collections::Generic::IEnumerable<Microsoft::Extensions::DependencyInjection::ServiceDescriptor ^> ^ descriptors);
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

Parâmetros

descriptors
IEnumerable<ServiceDescriptor>

Os ServiceDescriptors a serem adicionados.

Retornos

Uma referência à instância atual de IServiceCollection.

Aplica-se a