Class DisposableHtmlHelper<TModel>
HTML helper that can be created in a using block.
Inheritance
System.Object
Microsoft.AspNetCore.Mvc.ViewFeatures.HtmlHelper
Microsoft.AspNetCore.Mvc.ViewFeatures.HtmlHelper<TModel>
DisposableHtmlHelper<TModel>
Implements
Microsoft.AspNetCore.Mvc.ViewFeatures.IViewContextAware
Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper<TModel>
Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper
System.IDisposable
Inherited Members
Microsoft.AspNetCore.Mvc.ViewFeatures.HtmlHelper<TModel>.CheckBoxFor(System.Linq.Expressions.Expression<System.Func<TModel, System.Boolean>>, System.Object)
Microsoft.AspNetCore.Mvc.ViewFeatures.HtmlHelper<TModel>.Contextualize(Microsoft.AspNetCore.Mvc.Rendering.ViewContext)
Microsoft.AspNetCore.Mvc.ViewFeatures.HtmlHelper<TModel>.DisplayFor<TResult>(System.Linq.Expressions.Expression<System.Func<TModel, TResult>>, System.String, System.String, System.Object)
Microsoft.AspNetCore.Mvc.ViewFeatures.HtmlHelper<TModel>.DisplayNameForInnerType<TModelItem, TResult>(System.Linq.Expressions.Expression<System.Func<TModelItem, TResult>>)
Microsoft.AspNetCore.Mvc.ViewFeatures.HtmlHelper<TModel>.DisplayNameFor<TResult>(System.Linq.Expressions.Expression<System.Func<TModel, TResult>>)
Microsoft.AspNetCore.Mvc.ViewFeatures.HtmlHelper<TModel>.DisplayTextFor<TResult>(System.Linq.Expressions.Expression<System.Func<TModel, TResult>>)
Microsoft.AspNetCore.Mvc.ViewFeatures.HtmlHelper<TModel>.DropDownListFor<TResult>(System.Linq.Expressions.Expression<System.Func<TModel, TResult>>, System.Collections.Generic.IEnumerable<Microsoft.AspNetCore.Mvc.Rendering.SelectListItem>, System.String, System.Object)
Microsoft.AspNetCore.Mvc.ViewFeatures.HtmlHelper<TModel>.EditorFor<TResult>(System.Linq.Expressions.Expression<System.Func<TModel, TResult>>, System.String, System.String, System.Object)
Microsoft.AspNetCore.Mvc.ViewFeatures.HtmlHelper<TModel>.GetExpressionName<TResult>(System.Linq.Expressions.Expression<System.Func<TModel, TResult>>)
Microsoft.AspNetCore.Mvc.ViewFeatures.HtmlHelper<TModel>.GetModelExplorer<TResult>(System.Linq.Expressions.Expression<System.Func<TModel, TResult>>)
Microsoft.AspNetCore.Mvc.ViewFeatures.HtmlHelper<TModel>.HiddenFor<TResult>(System.Linq.Expressions.Expression<System.Func<TModel, TResult>>, System.Object)
Microsoft.AspNetCore.Mvc.ViewFeatures.HtmlHelper<TModel>.IdFor<TResult>(System.Linq.Expressions.Expression<System.Func<TModel, TResult>>)
Microsoft.AspNetCore.Mvc.ViewFeatures.HtmlHelper<TModel>.LabelFor<TResult>(System.Linq.Expressions.Expression<System.Func<TModel, TResult>>, System.String, System.Object)
Microsoft.AspNetCore.Mvc.ViewFeatures.HtmlHelper<TModel>.ListBoxFor<TResult>(System.Linq.Expressions.Expression<System.Func<TModel, TResult>>, System.Collections.Generic.IEnumerable<Microsoft.AspNetCore.Mvc.Rendering.SelectListItem>, System.Object)
Microsoft.AspNetCore.Mvc.ViewFeatures.HtmlHelper<TModel>.NameFor<TResult>(System.Linq.Expressions.Expression<System.Func<TModel, TResult>>)
Microsoft.AspNetCore.Mvc.ViewFeatures.HtmlHelper<TModel>.PasswordFor<TResult>(System.Linq.Expressions.Expression<System.Func<TModel, TResult>>, System.Object)
Microsoft.AspNetCore.Mvc.ViewFeatures.HtmlHelper<TModel>.RadioButtonFor<TResult>(System.Linq.Expressions.Expression<System.Func<TModel, TResult>>, System.Object, System.Object)
Microsoft.AspNetCore.Mvc.ViewFeatures.HtmlHelper<TModel>.TextAreaFor<TResult>(System.Linq.Expressions.Expression<System.Func<TModel, TResult>>, System.Int32, System.Int32, System.Object)
Microsoft.AspNetCore.Mvc.ViewFeatures.HtmlHelper<TModel>.TextBoxFor<TResult>(System.Linq.Expressions.Expression<System.Func<TModel, TResult>>, System.String, System.Object)
Microsoft.AspNetCore.Mvc.ViewFeatures.HtmlHelper<TModel>.ValidationMessageFor<TResult>(System.Linq.Expressions.Expression<System.Func<TModel, TResult>>, System.String, System.Object, System.String)
Microsoft.AspNetCore.Mvc.ViewFeatures.HtmlHelper<TModel>.ValueFor<TResult>(System.Linq.Expressions.Expression<System.Func<TModel, TResult>>, System.String)
Microsoft.AspNetCore.Mvc.ViewFeatures.HtmlHelper<TModel>.ViewData
Microsoft.AspNetCore.Mvc.ViewFeatures.HtmlHelper.ValidationInputCssClassName
Microsoft.AspNetCore.Mvc.ViewFeatures.HtmlHelper.ValidationInputValidCssClassName
Microsoft.AspNetCore.Mvc.ViewFeatures.HtmlHelper.ValidationMessageCssClassName
Microsoft.AspNetCore.Mvc.ViewFeatures.HtmlHelper.ValidationMessageValidCssClassName
Microsoft.AspNetCore.Mvc.ViewFeatures.HtmlHelper.ValidationSummaryCssClassName
Microsoft.AspNetCore.Mvc.ViewFeatures.HtmlHelper.ValidationSummaryValidCssClassName
Microsoft.AspNetCore.Mvc.ViewFeatures.HtmlHelper.ActionLink(System.String, System.String, System.String, System.String, System.String, System.String, System.Object, System.Object)
Microsoft.AspNetCore.Mvc.ViewFeatures.HtmlHelper.AnonymousObjectToHtmlAttributes(System.Object)
Microsoft.AspNetCore.Mvc.ViewFeatures.HtmlHelper.AntiForgeryToken()
Microsoft.AspNetCore.Mvc.ViewFeatures.HtmlHelper.BeginForm(System.String, System.String, System.Object, Microsoft.AspNetCore.Mvc.Rendering.FormMethod, System.Nullable<System.Boolean>, System.Object)
Microsoft.AspNetCore.Mvc.ViewFeatures.HtmlHelper.BeginRouteForm(System.String, System.Object, Microsoft.AspNetCore.Mvc.Rendering.FormMethod, System.Nullable<System.Boolean>, System.Object)
Microsoft.AspNetCore.Mvc.ViewFeatures.HtmlHelper.CheckBox(System.String, System.Nullable<System.Boolean>, System.Object)
Microsoft.AspNetCore.Mvc.ViewFeatures.HtmlHelper.CreateForm()
Microsoft.AspNetCore.Mvc.ViewFeatures.HtmlHelper.Display(System.String, System.String, System.String, System.Object)
Microsoft.AspNetCore.Mvc.ViewFeatures.HtmlHelper.DisplayName(System.String)
Microsoft.AspNetCore.Mvc.ViewFeatures.HtmlHelper.DisplayText(System.String)
Microsoft.AspNetCore.Mvc.ViewFeatures.HtmlHelper.DropDownList(System.String, System.Collections.Generic.IEnumerable<Microsoft.AspNetCore.Mvc.Rendering.SelectListItem>, System.String, System.Object)
Microsoft.AspNetCore.Mvc.ViewFeatures.HtmlHelper.Editor(System.String, System.String, System.String, System.Object)
Microsoft.AspNetCore.Mvc.ViewFeatures.HtmlHelper.Encode(System.Object)
Microsoft.AspNetCore.Mvc.ViewFeatures.HtmlHelper.Encode(System.String)
Microsoft.AspNetCore.Mvc.ViewFeatures.HtmlHelper.EndForm()
Microsoft.AspNetCore.Mvc.ViewFeatures.HtmlHelper.FormatValue(System.Object, System.String)
Microsoft.AspNetCore.Mvc.ViewFeatures.HtmlHelper.GenerateCheckBox(Microsoft.AspNetCore.Mvc.ViewFeatures.ModelExplorer, System.String, System.Nullable<System.Boolean>, System.Object)
Microsoft.AspNetCore.Mvc.ViewFeatures.HtmlHelper.GenerateDisplay(Microsoft.AspNetCore.Mvc.ViewFeatures.ModelExplorer, System.String, System.String, System.Object)
Microsoft.AspNetCore.Mvc.ViewFeatures.HtmlHelper.GenerateDisplayName(Microsoft.AspNetCore.Mvc.ViewFeatures.ModelExplorer, System.String)
Microsoft.AspNetCore.Mvc.ViewFeatures.HtmlHelper.GenerateDisplayText(Microsoft.AspNetCore.Mvc.ViewFeatures.ModelExplorer)
Microsoft.AspNetCore.Mvc.ViewFeatures.HtmlHelper.GenerateDropDown(Microsoft.AspNetCore.Mvc.ViewFeatures.ModelExplorer, System.String, System.Collections.Generic.IEnumerable<Microsoft.AspNetCore.Mvc.Rendering.SelectListItem>, System.String, System.Object)
Microsoft.AspNetCore.Mvc.ViewFeatures.HtmlHelper.GenerateEditor(Microsoft.AspNetCore.Mvc.ViewFeatures.ModelExplorer, System.String, System.String, System.Object)
Microsoft.AspNetCore.Mvc.ViewFeatures.HtmlHelper.GenerateForm(System.String, System.String, System.Object, Microsoft.AspNetCore.Mvc.Rendering.FormMethod, System.Nullable<System.Boolean>, System.Object)
Microsoft.AspNetCore.Mvc.ViewFeatures.HtmlHelper.GenerateHidden(Microsoft.AspNetCore.Mvc.ViewFeatures.ModelExplorer, System.String, System.Object, System.Boolean, System.Object)
Microsoft.AspNetCore.Mvc.ViewFeatures.HtmlHelper.GenerateId(System.String)
Microsoft.AspNetCore.Mvc.ViewFeatures.HtmlHelper.GenerateIdFromName(System.String)
Microsoft.AspNetCore.Mvc.ViewFeatures.HtmlHelper.GenerateLabel(Microsoft.AspNetCore.Mvc.ViewFeatures.ModelExplorer, System.String, System.String, System.Object)
Microsoft.AspNetCore.Mvc.ViewFeatures.HtmlHelper.GenerateListBox(Microsoft.AspNetCore.Mvc.ViewFeatures.ModelExplorer, System.String, System.Collections.Generic.IEnumerable<Microsoft.AspNetCore.Mvc.Rendering.SelectListItem>, System.Object)
Microsoft.AspNetCore.Mvc.ViewFeatures.HtmlHelper.GenerateName(System.String)
Microsoft.AspNetCore.Mvc.ViewFeatures.HtmlHelper.GeneratePassword(Microsoft.AspNetCore.Mvc.ViewFeatures.ModelExplorer, System.String, System.Object, System.Object)
Microsoft.AspNetCore.Mvc.ViewFeatures.HtmlHelper.GenerateRadioButton(Microsoft.AspNetCore.Mvc.ViewFeatures.ModelExplorer, System.String, System.Object, System.Nullable<System.Boolean>, System.Object)
Microsoft.AspNetCore.Mvc.ViewFeatures.HtmlHelper.GenerateRouteForm(System.String, System.Object, Microsoft.AspNetCore.Mvc.Rendering.FormMethod, System.Nullable<System.Boolean>, System.Object)
Microsoft.AspNetCore.Mvc.ViewFeatures.HtmlHelper.GenerateTextArea(Microsoft.AspNetCore.Mvc.ViewFeatures.ModelExplorer, System.String, System.Int32, System.Int32, System.Object)
Microsoft.AspNetCore.Mvc.ViewFeatures.HtmlHelper.GenerateTextBox(Microsoft.AspNetCore.Mvc.ViewFeatures.ModelExplorer, System.String, System.Object, System.String, System.Object)
Microsoft.AspNetCore.Mvc.ViewFeatures.HtmlHelper.GenerateValidationMessage(Microsoft.AspNetCore.Mvc.ViewFeatures.ModelExplorer, System.String, System.String, System.String, System.Object)
Microsoft.AspNetCore.Mvc.ViewFeatures.HtmlHelper.GenerateValidationSummary(System.Boolean, System.String, System.Object, System.String)
Microsoft.AspNetCore.Mvc.ViewFeatures.HtmlHelper.GenerateValue(System.String, System.Object, System.String, System.Boolean)
Microsoft.AspNetCore.Mvc.ViewFeatures.HtmlHelper.GetEnumSelectList(Microsoft.AspNetCore.Mvc.ModelBinding.ModelMetadata)
Microsoft.AspNetCore.Mvc.ViewFeatures.HtmlHelper.GetEnumSelectList(System.Type)
Microsoft.AspNetCore.Mvc.ViewFeatures.HtmlHelper.GetEnumSelectList<TEnum>()
Microsoft.AspNetCore.Mvc.ViewFeatures.HtmlHelper.GetFormMethodString(Microsoft.AspNetCore.Mvc.Rendering.FormMethod)
Microsoft.AspNetCore.Mvc.ViewFeatures.HtmlHelper.Hidden(System.String, System.Object, System.Object)
Microsoft.AspNetCore.Mvc.ViewFeatures.HtmlHelper.Id(System.String)
Microsoft.AspNetCore.Mvc.ViewFeatures.HtmlHelper.Label(System.String, System.String, System.Object)
Microsoft.AspNetCore.Mvc.ViewFeatures.HtmlHelper.ListBox(System.String, System.Collections.Generic.IEnumerable<Microsoft.AspNetCore.Mvc.Rendering.SelectListItem>, System.Object)
Microsoft.AspNetCore.Mvc.ViewFeatures.HtmlHelper.Name(System.String)
Microsoft.AspNetCore.Mvc.ViewFeatures.HtmlHelper.ObjectToDictionary(System.Object)
Microsoft.AspNetCore.Mvc.ViewFeatures.HtmlHelper.PartialAsync(System.String, System.Object, Microsoft.AspNetCore.Mvc.ViewFeatures.ViewDataDictionary)
Microsoft.AspNetCore.Mvc.ViewFeatures.HtmlHelper.Password(System.String, System.Object, System.Object)
Microsoft.AspNetCore.Mvc.ViewFeatures.HtmlHelper.RadioButton(System.String, System.Object, System.Nullable<System.Boolean>, System.Object)
Microsoft.AspNetCore.Mvc.ViewFeatures.HtmlHelper.Raw(System.Object)
Microsoft.AspNetCore.Mvc.ViewFeatures.HtmlHelper.Raw(System.String)
Microsoft.AspNetCore.Mvc.ViewFeatures.HtmlHelper.RenderPartialAsync(System.String, System.Object, Microsoft.AspNetCore.Mvc.ViewFeatures.ViewDataDictionary)
Microsoft.AspNetCore.Mvc.ViewFeatures.HtmlHelper.RenderPartialCoreAsync(System.String, System.Object, Microsoft.AspNetCore.Mvc.ViewFeatures.ViewDataDictionary, System.IO.TextWriter)
Microsoft.AspNetCore.Mvc.ViewFeatures.HtmlHelper.RouteLink(System.String, System.String, System.String, System.String, System.String, System.Object, System.Object)
Microsoft.AspNetCore.Mvc.ViewFeatures.HtmlHelper.TextArea(System.String, System.String, System.Int32, System.Int32, System.Object)
Microsoft.AspNetCore.Mvc.ViewFeatures.HtmlHelper.TextBox(System.String, System.Object, System.String, System.Object)
Microsoft.AspNetCore.Mvc.ViewFeatures.HtmlHelper.ValidationMessage(System.String, System.String, System.Object, System.String)
Microsoft.AspNetCore.Mvc.ViewFeatures.HtmlHelper.ValidationSummary(System.Boolean, System.String, System.Object, System.String)
Microsoft.AspNetCore.Mvc.ViewFeatures.HtmlHelper.Value(System.String, System.String)
Microsoft.AspNetCore.Mvc.ViewFeatures.HtmlHelper.Html5DateRenderingMode
Microsoft.AspNetCore.Mvc.ViewFeatures.HtmlHelper.IdAttributeDotReplacement
Microsoft.AspNetCore.Mvc.ViewFeatures.HtmlHelper.MetadataProvider
Microsoft.AspNetCore.Mvc.ViewFeatures.HtmlHelper.TempData
Microsoft.AspNetCore.Mvc.ViewFeatures.HtmlHelper.UrlEncoder
Microsoft.AspNetCore.Mvc.ViewFeatures.HtmlHelper.ViewBag
Microsoft.AspNetCore.Mvc.ViewFeatures.HtmlHelper.ViewContext
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: ChameleonForms.Utils
Assembly: ChameleonForms.dll
Syntax
public class DisposableHtmlHelper<TModel> : HtmlHelper<TModel>, IViewContextAware, IHtmlHelper<TModel>, IHtmlHelper, IDisposable
Type Parameters
Name | Description |
---|---|
TModel | The model type of the HTML helper |
Constructors
| Improve this Doc View SourceDisposableHtmlHelper(IHtmlGenerator, ICompositeViewEngine, IModelMetadataProvider, IViewBufferScope, HtmlEncoder, UrlEncoder, ModelExpressionProvider, ViewContext)
Creates a DisposableHtmlHelper<TModel> to wrap a scope around a new HtmlHelper instance.
Declaration
public DisposableHtmlHelper(IHtmlGenerator htmlGenerator, ICompositeViewEngine viewEngine, IModelMetadataProvider metadataProvider, IViewBufferScope bufferScope, HtmlEncoder htmlEncoder, UrlEncoder urlEncoder, ModelExpressionProvider modelExpressionProvider, ViewContext viewContext)
Parameters
Type | Name | Description |
---|---|---|
Microsoft.AspNetCore.Mvc.ViewFeatures.IHtmlGenerator | htmlGenerator | The HTML generator to use |
Microsoft.AspNetCore.Mvc.ViewEngines.ICompositeViewEngine | viewEngine | The view engine to use |
Microsoft.AspNetCore.Mvc.ModelBinding.IModelMetadataProvider | metadataProvider | The metadata provider to use |
Microsoft.AspNetCore.Mvc.ViewFeatures.Buffers.IViewBufferScope | bufferScope | The buffer scope to use |
System.Text.Encodings.Web.HtmlEncoder | htmlEncoder | The HTML encoder to use |
System.Text.Encodings.Web.UrlEncoder | urlEncoder | The URL encoder to use |
Microsoft.AspNetCore.Mvc.ViewFeatures.ModelExpressionProvider | modelExpressionProvider | The model expression provider |
Microsoft.AspNetCore.Mvc.Rendering.ViewContext | viewContext | The new view context to wrap |
Methods
| Improve this Doc View SourceDispose()
Dispose of the scope.
Declaration
public void Dispose()
Implements
Microsoft.AspNetCore.Mvc.ViewFeatures.IViewContextAware
Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper<TModel>
Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper
System.IDisposable