WebHostBuilderExtensions.UseSolutionRelativeContentRoot Méthode

Définition

Surcharges

UseSolutionRelativeContentRoot(IWebHostBuilder, String, String)

Définit la racine de contenu de relative à .solutionRelativePath

UseSolutionRelativeContentRoot(IWebHostBuilder, String, String, String)

Définit la racine de contenu de relative à .solutionRelativePath

UseSolutionRelativeContentRoot(IWebHostBuilder, String, String)

Définit la racine de contenu de relative à .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

Paramètres

builder
IWebHostBuilder

L’IWebHostBuilderopérateur

solutionRelativePath
String

Répertoire du fichier solution.

solutionName
String

Nom du fichier de solution à laquelle la racine de contenu doit être définie par rapport.

Retours

L’IWebHostBuilderopérateur

S’applique à

UseSolutionRelativeContentRoot(IWebHostBuilder, String, String, String)

Définit la racine de contenu de relative à .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

Paramètres

builder
IWebHostBuilder

L’IWebHostBuilderopérateur

solutionRelativePath
String

Répertoire du fichier solution.

applicationBasePath
String

Racine du répertoire de l’application.

solutionName
String

Nom du fichier de solution à laquelle la racine de contenu doit être définie par rapport.

Retours

L’IWebHostBuilderopérateur

S’applique à