Click or drag to resize

DataContextConfigureView(HttpRequestMessage, Object) Method

Configures a simple view with common view bag parameters.

Namespace: GSF.Web.Model
Assembly: GSF.Web (in GSF.Web.dll) Version: 2.4.218-beta
Syntax
public void ConfigureView(
	HttpRequestMessage request,
	Object viewBag
)
View Source

Parameters

request  HttpRequestMessage
HTTP request message for view used to derive route ID, if any.
viewBag  Object
Current view bag.
Remarks
This is normally called from controller before returning view action result. For self-hosted web servers, route ID is passed as a command line parameter, e.g.: myview.cshtml?RouteID=ShowDeleted
See Also