ServiceCollectionDescriptorExtensions.Add Metodo
Definizione
Importante
Alcune informazioni sono relative alla release non definitiva del prodotto, che potrebbe subire modifiche significative prima della release definitiva. Microsoft non riconosce alcuna garanzia, espressa o implicita, in merito alle informazioni qui fornite.
Overload
Add(IServiceCollection, ServiceDescriptor) |
Aggiunge l'oggetto |
Add(IServiceCollection, IEnumerable<ServiceDescriptor>) |
Aggiunge una sequenza di oggetti ServiceDescriptor a |
Add(IServiceCollection, ServiceDescriptor)
Aggiunge l'oggetto descriptor
specificato alla raccolta 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
Parametri
- collection
- IServiceCollection
Oggetto IServiceCollection.
- descriptor
- ServiceDescriptor
Oggetto ServiceDescriptor da aggiungere.
Restituisce
Riferimento all'istanza corrente di IServiceCollection.
Si applica a
Add(IServiceCollection, IEnumerable<ServiceDescriptor>)
Aggiunge una sequenza di oggetti ServiceDescriptor a 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
Parametri
- collection
- IServiceCollection
Oggetto IServiceCollection.
- descriptors
- IEnumerable<ServiceDescriptor>
Oggetti ServiceDescriptor da aggiungere.
Restituisce
Riferimento all'istanza corrente di IServiceCollection.