共用方式為


WebHostBuilderExtensions.UseSolutionRelativeContentRoot 方法

定義

多載

UseSolutionRelativeContentRoot(IWebHostBuilder, String, String)

設定 相對於 的內容根 solutionRelativePath 目錄。

UseSolutionRelativeContentRoot(IWebHostBuilder, String, String, String)

設定 相對於 的內容根 solutionRelativePath 目錄。

UseSolutionRelativeContentRoot(IWebHostBuilder, String, String)

來源:
WebHostBuilderExtensions.cs
來源:
WebHostBuilderExtensions.cs
來源:
WebHostBuilderExtensions.cs
來源:
WebHostBuilderExtensions.cs
來源:
WebHostBuilderExtensions.cs
來源:
WebHostBuilderExtensions.cs
來源:
WebHostBuilderExtensions.cs
來源:
WebHostBuilderExtensions.cs
來源:
WebHostBuilderExtensions.cs

設定 相對於 的內容根 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)

來源:
WebHostBuilderExtensions.cs
來源:
WebHostBuilderExtensions.cs
來源:
WebHostBuilderExtensions.cs
來源:
WebHostBuilderExtensions.cs
來源:
WebHostBuilderExtensions.cs
來源:
WebHostBuilderExtensions.cs
來源:
WebHostBuilderExtensions.cs
來源:
WebHostBuilderExtensions.cs
來源:
WebHostBuilderExtensions.cs

設定 相對於 的內容根 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

適用於