共用方式為


IMvcBuilder.Services 屬性

定義

IServiceCollection取得設定 MVC 服務的 。

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

屬性值

適用於