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

属性值

实现

适用于