共用方式為


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> 的物件。

實作

適用於