WebHostBuilderExtensions.UseSolutionRelativeContentRoot Метод

Определение

Перегрузки

UseSolutionRelativeContentRoot(IWebHostBuilder, String, String)

Задает корень содержимого относительно solutionRelativePath.

UseSolutionRelativeContentRoot(IWebHostBuilder, String, String, String)

Задает корень содержимого относительно solutionRelativePath.

UseSolutionRelativeContentRoot(IWebHostBuilder, String, String)

Задает корень содержимого относительно solutionRelativePath.

public static Microsoft.AspNetCore.Hosting.IWebHostBuilder UseSolutionRelativeContentRoot (this Microsoft.AspNetCore.Hosting.IWebHostBuilder builder, string solutionRelativePath, string solutionName = "*.sln");
static member UseSolutionRelativeContentRoot : Microsoft.AspNetCore.Hosting.IWebHostBuilder * string * string -> Microsoft.AspNetCore.Hosting.IWebHostBuilder
<Extension()>
Public Function UseSolutionRelativeContentRoot (builder As IWebHostBuilder, solutionRelativePath As String, Optional solutionName As String = "*.sln") As IWebHostBuilder

Параметры

solutionRelativePath
String

Каталог файла решения.

solutionName
String

Имя файла решения для создания корневого каталога содержимого относительно.

Возвращаемое значение

IWebHostBuilder.

Применяется к

UseSolutionRelativeContentRoot(IWebHostBuilder, String, String, String)

Задает корень содержимого относительно solutionRelativePath.

public static Microsoft.AspNetCore.Hosting.IWebHostBuilder UseSolutionRelativeContentRoot (this Microsoft.AspNetCore.Hosting.IWebHostBuilder builder, string solutionRelativePath, string applicationBasePath, string solutionName = "*.sln");
static member UseSolutionRelativeContentRoot : Microsoft.AspNetCore.Hosting.IWebHostBuilder * string * string * string -> Microsoft.AspNetCore.Hosting.IWebHostBuilder
<Extension()>
Public Function UseSolutionRelativeContentRoot (builder As IWebHostBuilder, solutionRelativePath As String, applicationBasePath As String, Optional solutionName As String = "*.sln") As IWebHostBuilder

Параметры

solutionRelativePath
String

Каталог файла решения.

applicationBasePath
String

Корень каталога приложения.

solutionName
String

Имя файла решения для создания корневого каталога содержимого относительно.

Возвращаемое значение

IWebHostBuilder.

Применяется к