Search Results for

    Show / Hide Table of Contents
    View Source

    Class ViewContextExtensions

    Inheritance
    System.Object
    Namespace: Umbraco.Extensions
    Assembly: Umbraco.Web.Common.dll
    Syntax
    public static class ViewContextExtensions

    Methods

    View Source

    Clone(ViewContext)

    Declaration
    public static ViewContext Clone(this ViewContext vc)
    Parameters
    Type Name Description
    Microsoft.AspNetCore.Mvc.Rendering.ViewContext vc
    Returns
    Type Description
    Microsoft.AspNetCore.Mvc.Rendering.ViewContext
    View Source

    CopyWithModel(ViewContext, Object)

    Creates a new ViewContext from an existing one but specifies a new Model for the ViewData

    Declaration
    public static ViewContext CopyWithModel(this ViewContext vc, object model)
    Parameters
    Type Name Description
    Microsoft.AspNetCore.Mvc.Rendering.ViewContext vc
    System.Object model
    Returns
    Type Description
    Microsoft.AspNetCore.Mvc.Rendering.ViewContext
    • Improve this Doc
    • View Source
    In This Article
    • Methods
      • Clone(ViewContext)
      • CopyWithModel(ViewContext, Object)
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX