共用方式為


HostApplicationBuilder.Services 屬性

定義

取得要撰寫之應用程式的服務集合。 這個屬性適用於新增使用者提供或架構提供的服務。

public:
 property Microsoft::Extensions::DependencyInjection::IServiceCollection ^ Services { Microsoft::Extensions::DependencyInjection::IServiceCollection ^ get(); };
public Microsoft.Extensions.DependencyInjection.IServiceCollection Services { get; }
member this.Services : Microsoft.Extensions.DependencyInjection.IServiceCollection
Public ReadOnly Property Services As IServiceCollection

屬性值

實作

適用於