共用方式為


DirectoryBrowserServiceExtensions.AddDirectoryBrowser 方法

定義

新增瀏覽目錄器中介軟體服務。

public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddDirectoryBrowser (this Microsoft.Extensions.DependencyInjection.IServiceCollection services);
static member AddDirectoryBrowser : Microsoft.Extensions.DependencyInjection.IServiceCollection -> Microsoft.Extensions.DependencyInjection.IServiceCollection
<Extension()>
Public Function AddDirectoryBrowser (services As IServiceCollection) As IServiceCollection

參數

services
IServiceCollection

要新增服務的 IServiceCollection

傳回

IServiceCollection,以便鏈結其他呼叫。

適用於