Show / Hide Table of Contents

    Class ViewContextExtensions

    Extension methods on Microsoft.AspNetCore.Mvc.Rendering.ViewContext.

    Inheritance
    System.Object
    ViewContextExtensions
    Inherited Members
    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 static class ViewContextExtensions

    Methods

    | Improve this Doc View Source

    GetHtmlHelper<TModel>(ViewContext)

    Returns an Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper<TModel> which has been resolved from request services and contextualised to the given Microsoft.AspNetCore.Mvc.Rendering.ViewContext.

    Declaration
    public static IHtmlHelper<TModel> GetHtmlHelper<TModel>(this ViewContext viewContext)
    Parameters
    Type Name Description
    Microsoft.AspNetCore.Mvc.Rendering.ViewContext viewContext

    The view context to contextualise against

    Returns
    Type Description
    Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper<TModel>

    The contextualised HTML helper

    Type Parameters
    Name Description
    TModel

    The model type to return a HTML Helper instance for

    • Improve this Doc
    • View Source
    Back to top © Copyright 2012-2020 MRCollective, Rob Moore, Matt Davies and the contributors to ChameleonForms.