2011-01-22 6 views

答えて

0

(フィルタコンテキストを使用して)RouteDataコレクションにいつでもアクセスして、アクションパラメータが何かを確認できます。

0

あなたは

IActionFilter.OnActionExecuting(ActionExecutingContext filterContext) 
    { 
     string actionName = filterContext.ActionDescriptor.ActionName; 
    } 

を使用している場合は、filterContext.ActionDescriptor.ActionNameは、あなたのアクション名を与える

関連する問題