C# Class System.ComponentModel.Navigation.Controller

Encapsulates application logic exposed as a set of actions. The controller itself should be stateless. Each action is invoked using a different controller instance.
Inheritance: IController
Show file Open project: nikhilk/silverlightfx Class Usage Examples

Protected Methods

Method Description
Error ( Exception error ) : ErrorActionResult

Creates an ErrorActionResult that specifies the error that occurred in completing the action.

Redirect ( Type controllerType, string actionName ) : RedirectActionResult

Creates a RedirectActionResult that results in a redirect to the specified controller and action along with any specified parameters.

Redirect ( string actionName ) : RedirectActionResult

Creates a RedirectActionResult that results in a redirect to the specified action.

View ( string viewName ) : ViewActionResult

Creates a ViewActionResult that results in the specified view being created.

Private Methods

Method Description
IController ( IAsyncResult asyncResult ) : ActionResult
IController ( ActionInvocation action, AsyncCallback callback, object asyncState ) : IAsyncResult
OnActionCompleted ( object sender, EventArgs e ) : void

Method Details

Error() protected method

Creates an ErrorActionResult that specifies the error that occurred in completing the action.
protected Error ( Exception error ) : ErrorActionResult
error System.Exception The error that occurred.
return ErrorActionResult

Redirect() protected method

Creates a RedirectActionResult that results in a redirect to the specified controller and action along with any specified parameters.
protected Redirect ( Type controllerType, string actionName ) : RedirectActionResult
controllerType System.Type The controller to redirect to.
actionName string The name of the action on the specified controller to redirect to.
return RedirectActionResult

Redirect() protected method

Creates a RedirectActionResult that results in a redirect to the specified action.
protected Redirect ( string actionName ) : RedirectActionResult
actionName string The name of the action on this controller to redirect to.
return RedirectActionResult

View() protected method

Creates a ViewActionResult that results in the specified view being created.
protected View ( string viewName ) : ViewActionResult
viewName string The name of the view to create.
return ViewActionResult