Udostępnij za pośrednictwem


ServiceCollectionDescriptorExtensions.Add Metoda

Definicja

Przeciążenia

Add(IServiceCollection, ServiceDescriptor)

Dodaje określony descriptor element do elementu collection.

Add(IServiceCollection, IEnumerable<ServiceDescriptor>)

Dodaje sekwencję do ServiceDescriptor obiektu collection.

Add(IServiceCollection, ServiceDescriptor)

Źródło:
ServiceCollectionDescriptorExtensions.cs
Źródło:
ServiceCollectionDescriptorExtensions.cs
Źródło:
ServiceCollectionDescriptorExtensions.cs

Dodaje określony descriptor element do elementu 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

Element do dodania ServiceDescriptor .

Zwraca

Odwołanie do bieżącego wystąpienia klasy IServiceCollection.

Dotyczy

Add(IServiceCollection, IEnumerable<ServiceDescriptor>)

Źródło:
ServiceCollectionDescriptorExtensions.cs
Źródło:
ServiceCollectionDescriptorExtensions.cs
Źródło:
ServiceCollectionDescriptorExtensions.cs

Dodaje sekwencję do ServiceDescriptor obiektu 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 do dodania ServiceDescriptor.

Zwraca

Odwołanie do bieżącego wystąpienia klasy IServiceCollection.

Dotyczy