ReflectedControllerDescriptor.FindAction(ControllerContext, String) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
尋找指定的動作,以用於指定的控制器內容。
public override System.Web.Mvc.ActionDescriptor FindAction(System.Web.Mvc.ControllerContext controllerContext, string actionName);
override this.FindAction : System.Web.Mvc.ControllerContext * string -> System.Web.Mvc.ActionDescriptor
Public Overrides Function FindAction (controllerContext As ControllerContext, actionName As String) As ActionDescriptor
參數
- controllerContext
- ControllerContext
控制器內容。
- actionName
- String
動作的名稱。
傳回
動作的相關資訊。
例外狀況
controllerContext
參數為 null。
參數 actionName
為 Null 或空白。