ServiceCollection.ICollection<ServiceDescriptor>.Add 方法

定义

将某项添加到 ICollection<T> 中。

 virtual void System.Collections.Generic.ICollection<Microsoft.Extensions.DependencyInjection.ServiceDescriptor>.Add(Microsoft::Extensions::DependencyInjection::ServiceDescriptor ^ item) = System::Collections::Generic::ICollection<Microsoft::Extensions::DependencyInjection::ServiceDescriptor ^>::Add;
void ICollection<ServiceDescriptor>.Add (Microsoft.Extensions.DependencyInjection.ServiceDescriptor item);
abstract member System.Collections.Generic.ICollection<Microsoft.Extensions.DependencyInjection.ServiceDescriptor>.Add : Microsoft.Extensions.DependencyInjection.ServiceDescriptor -> unit
override this.System.Collections.Generic.ICollection<Microsoft.Extensions.DependencyInjection.ServiceDescriptor>.Add : Microsoft.Extensions.DependencyInjection.ServiceDescriptor -> unit
Sub Add (item As ServiceDescriptor) Implements ICollection(Of ServiceDescriptor).Add

参数

item
ServiceDescriptor

要添加到 ICollection<T> 的对象。

实现

适用于