ServiceCollectionDescriptorExtensions.Add 메서드

정의

오버로드

Add(IServiceCollection, ServiceDescriptor)

지정된 descriptorcollection에 추가합니다.Adds the specified descriptor to the collection.

Add(IServiceCollection, IEnumerable<ServiceDescriptor>)

ServiceDescriptor 시퀀스를 collection에 추가합니다.Adds a sequence of ServiceDescriptor to the collection.

Add(IServiceCollection, ServiceDescriptor)

지정된 descriptorcollection에 추가합니다.Adds the specified descriptor to the 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

매개 변수

descriptor
ServiceDescriptor

추가할 ServiceDescriptor입니다.The ServiceDescriptor to add.

반환

IServiceCollection의 현재 인스턴스에 대한 참조입니다.A reference to the current instance of IServiceCollection.

Add(IServiceCollection, IEnumerable<ServiceDescriptor>)

ServiceDescriptor 시퀀스를 collection에 추가합니다.Adds a sequence of ServiceDescriptor to the 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입니다.The ServiceDescriptors to add.

반환

IServiceCollection의 현재 인스턴스에 대한 참조입니다.A reference to the current instance of IServiceCollection.

적용 대상