View Source
Class ViewContextExtensions
Inheritance
System.Object
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 |
|