TagHelperInitializer<TTagHelper> Class¶
Inheritance Hierarchy¶
System.Object
Microsoft.AspNet.Mvc.Razor.TagHelperInitializer<TTagHelper>
Syntax¶
public class TagHelperInitializer<TTagHelper> : ITagHelperInitializer<TTagHelper> where TTagHelper : ITagHelper
Constructors¶
-
TagHelperInitializer
(System.Action<TTagHelper, Microsoft.AspNet.Mvc.ViewContext>)¶ Creates a [Microsoft.AspNet.Mvc.Razor.TagHelperInitializer`1](Microsoft.AspNet.Mvc.Razor.TagHelperInitializer`1.yml).
Arguments: - action (System.Action{{TTagHelper},Microsoft.AspNet.Mvc.ViewContext}) – The initialization delegate.
public TagHelperInitializer(Action<TTagHelper, ViewContext> action)
-
Methods¶
-
Initialize
(TTagHelper, Microsoft.AspNet.Mvc.ViewContext)¶ Arguments: - helper (TTagHelper) –
- context (Microsoft.AspNet.Mvc.ViewContext) –
public void Initialize(TTagHelper helper, ViewContext context)
-