HtmlActionResult Constructor (HttpConfiguration^, HttpRequestMessage^, HttpRequestContext^, String^, Object^)

 

Initializes a new HtmlActionResult with a given viewName and a model.

Namespace:   Microsoft.WindowsAzure.Mobile.Service.Content
Assembly:  Microsoft.WindowsAzure.Mobile.Service (in Microsoft.WindowsAzure.Mobile.Service.dll)

public:
HtmlActionResult(
	HttpConfiguration^ config,
	HttpRequestMessage^ request,
	HttpRequestContext^ context,
	String^ viewName,
	Object^ model
)

Parameters

config
Type: System.Web.Http::HttpConfiguration^

The current configuration used to resolve the IDocumentationProvider and ITemplateServiceProvider. The latter provides the Razor template service which is used to create the view.

request
Type: System.Net.Http::HttpRequestMessage^

The current HttpRequestMessage.

context
Type: System.Web.Http.Controllers::HttpRequestContext^

The current HttpRequestContext.

viewName
Type: System::String^

The name of the template view to use, for example "/Help/Index". The exact path depends on the resolution done by the IContentProvider.

model
Type: System::Object^

The model to pass to the view.

Return to top
Show: