Sdílet prostřednictvím


ServiceCollectionDescriptorExtensions.Add Metoda

Definice

Přetížení

Add(IServiceCollection, ServiceDescriptor)

Přidá zadaný descriptor parametr do .collection

Add(IServiceCollection, IEnumerable<ServiceDescriptor>)

Přidá sekvenci ServiceDescriptor do .collection

Add(IServiceCollection, ServiceDescriptor)

Zdroj:
ServiceCollectionDescriptorExtensions.cs
Zdroj:
ServiceCollectionDescriptorExtensions.cs
Zdroj:
ServiceCollectionDescriptorExtensions.cs

Přidá zadaný descriptor parametr do .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

Parametry

descriptor
ServiceDescriptor

Přidá ServiceDescriptor se.

Návraty

Odkaz na aktuální instanci objektu IServiceCollection.

Platí pro

Add(IServiceCollection, IEnumerable<ServiceDescriptor>)

Zdroj:
ServiceCollectionDescriptorExtensions.cs
Zdroj:
ServiceCollectionDescriptorExtensions.cs
Zdroj:
ServiceCollectionDescriptorExtensions.cs

Přidá sekvenci ServiceDescriptor do .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

Parametry

descriptors
IEnumerable<ServiceDescriptor>

S ServiceDescriptor, které chcete přidat.

Návraty

Odkaz na aktuální instanci objektu IServiceCollection.

Platí pro