IHostApplicationBuilder.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

属性值

适用于