Freigeben über


ServiceCollectionDescriptorExtensions.Add Methode

Definition

Überlädt

Add(IServiceCollection, ServiceDescriptor)

Fügt dem descriptor die angegebene collection hinzu.

Add(IServiceCollection, IEnumerable<ServiceDescriptor>)

Fügt eine Sequenz von ServiceDescriptor zu collection hinzu.

Add(IServiceCollection, ServiceDescriptor)

Quelle:
ServiceCollectionDescriptorExtensions.cs
Quelle:
ServiceCollectionDescriptorExtensions.cs
Quelle:
ServiceCollectionDescriptorExtensions.cs
Quelle:
ServiceCollectionDescriptorExtensions.cs
Quelle:
ServiceCollectionDescriptorExtensions.cs

Fügt dem descriptor die angegebene collection hinzu.

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

Parameter

descriptor
ServiceDescriptor

Das hinzuzufügende ServiceDescriptor.

Gibt zurück

Ein Verweis auf die aktuelle Instanz von IServiceCollection.

Gilt für:

Add(IServiceCollection, IEnumerable<ServiceDescriptor>)

Quelle:
ServiceCollectionDescriptorExtensions.cs
Quelle:
ServiceCollectionDescriptorExtensions.cs
Quelle:
ServiceCollectionDescriptorExtensions.cs
Quelle:
ServiceCollectionDescriptorExtensions.cs
Quelle:
ServiceCollectionDescriptorExtensions.cs

Fügt eine Sequenz von ServiceDescriptor zu collection hinzu.

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

Parameter

descriptors
IEnumerable<ServiceDescriptor>

Die ServiceDescriptors, die hinzugefügt werden sollen.

Gibt zurück

Ein Verweis auf die aktuelle Instanz von IServiceCollection.

Gilt für: