共用方式為


EnvironmentTagHelper 建構函式

定義

多載

EnvironmentTagHelper(IHostingEnvironment)

建立新的 EnvironmentTagHelper

EnvironmentTagHelper(IWebHostEnvironment)

建立新的 EnvironmentTagHelper

EnvironmentTagHelper(IHostingEnvironment)

來源:
EnvironmentTagHelper.cs
來源:
EnvironmentTagHelper.cs

建立新的 EnvironmentTagHelper

public:
 EnvironmentTagHelper(Microsoft::AspNetCore::Hosting::IHostingEnvironment ^ hostingEnvironment);
public EnvironmentTagHelper (Microsoft.AspNetCore.Hosting.IHostingEnvironment hostingEnvironment);
new Microsoft.AspNetCore.Mvc.TagHelpers.EnvironmentTagHelper : Microsoft.AspNetCore.Hosting.IHostingEnvironment -> Microsoft.AspNetCore.Mvc.TagHelpers.EnvironmentTagHelper
Public Sub New (hostingEnvironment As IHostingEnvironment)

參數

適用於

EnvironmentTagHelper(IWebHostEnvironment)

來源:
EnvironmentTagHelper.cs

建立新的 EnvironmentTagHelper

public:
 EnvironmentTagHelper(Microsoft::AspNetCore::Hosting::IWebHostEnvironment ^ hostingEnvironment);
public EnvironmentTagHelper (Microsoft.AspNetCore.Hosting.IWebHostEnvironment hostingEnvironment);
new Microsoft.AspNetCore.Mvc.TagHelpers.EnvironmentTagHelper : Microsoft.AspNetCore.Hosting.IWebHostEnvironment -> Microsoft.AspNetCore.Mvc.TagHelpers.EnvironmentTagHelper
Public Sub New (hostingEnvironment As IWebHostEnvironment)

參數

適用於