ServiceCollectionDescriptorExtensions.Add メソッド

定義

オーバーロード

Add(IServiceCollection, ServiceDescriptor)

指定した descriptorcollection に追加します。

Add(IServiceCollection, IEnumerable<ServiceDescriptor>)

ServiceDescriptor のシーケンスを collection に追加します。

Add(IServiceCollection, ServiceDescriptor)

ソース:
ServiceCollectionDescriptorExtensions.cs
ソース:
ServiceCollectionDescriptorExtensions.cs
ソース:
ServiceCollectionDescriptorExtensions.cs
ソース:
ServiceCollectionDescriptorExtensions.cs
ソース:
ServiceCollectionDescriptorExtensions.cs

指定した descriptorcollection に追加します。

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

パラメーター

descriptor
ServiceDescriptor

追加する ServiceDescriptor

戻り値

IServiceCollection の現在のインスタンスへの参照。

適用対象

Add(IServiceCollection, IEnumerable<ServiceDescriptor>)

ソース:
ServiceCollectionDescriptorExtensions.cs
ソース:
ServiceCollectionDescriptorExtensions.cs
ソース:
ServiceCollectionDescriptorExtensions.cs
ソース:
ServiceCollectionDescriptorExtensions.cs
ソース:
ServiceCollectionDescriptorExtensions.cs

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

パラメーター

descriptors
IEnumerable<ServiceDescriptor>

追加する ServiceDescriptor

戻り値

IServiceCollection の現在のインスタンスへの参照。

適用対象