C# 클래스 MvcContrib.Filters.PassParametersDuringRedirectAttribute

When placed on a controller or action, this attribute will ensure that reference-type-parameters (or value types which cannot be converted from a string) passed into RedirectToAction<T>() will get passed to the controller or action that this attribute is placed on.
상속: System.Web.Mvc.ActionFilterAttribute
파일 보기 프로젝트 열기: atomicobject/mvccontrib 1 사용 예제들

공개 메소드들

메소드 설명
OnActionExecuted ( System.Web.Mvc.ActionExecutedContext filterContext ) : void

Stores any parameters passed to the generic RedirectToAction method in TempData.

OnActionExecuting ( System.Web.Mvc.ActionExecutingContext filterContext ) : void

Loads parameters from TempData into the ActionParameters dictionary.

비공개 메소드들

메소드 설명
AddParameterValuesFromExpressionToTempData ( TempDataDictionary tempData, MethodCallExpression call ) : object>.IDictionary
GetParameterName ( string key ) : string
GetStoredParameterValues ( System.Web.Mvc.ActionExecutingContext filterContext ) : object>>.IList
LoadParameterValuesFromTempData ( System.Web.Mvc.ActionExecutingContext filterContext ) : void
RemoveStoredParametersFromRouteValues ( RouteValueDictionary dictionary, IEnumerable keysToRemove ) : void

메소드 상세

OnActionExecuted() 공개 메소드

Stores any parameters passed to the generic RedirectToAction method in TempData.
public OnActionExecuted ( System.Web.Mvc.ActionExecutedContext filterContext ) : void
filterContext System.Web.Mvc.ActionExecutedContext
리턴 void

OnActionExecuting() 공개 메소드

Loads parameters from TempData into the ActionParameters dictionary.
public OnActionExecuting ( System.Web.Mvc.ActionExecutingContext filterContext ) : void
filterContext System.Web.Mvc.ActionExecutingContext
리턴 void