EnvironmentTagHelper Class¶
Summary¶
@!:ITagHelper- implementation targeting <environment> elements that conditionally renders content based on the current value of @!:IHostingEnvironment.EnvironmentName-.
Constructors¶
-
EnvironmentTagHelper
(IHostingEnvironment)¶ Creates a new [Microsoft.AspNet.Mvc.TagHelpers.EnvironmentTagHelper](Microsoft.AspNet.Mvc.TagHelpers.EnvironmentTagHelper.yml).
Arguments: - hostingEnvironment (IHostingEnvironment) – The @!:IHostingEnvironment-.
public EnvironmentTagHelper(IHostingEnvironment hostingEnvironment)
-