ViewNotFoundEventData 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
初始化 ViewNotFoundEventData 的新实例。
public:
ViewNotFoundEventData(Microsoft::AspNetCore::Mvc::ActionContext ^ actionContext, bool isMainPage, Microsoft::AspNetCore::Mvc::ActionResult ^ result, System::String ^ viewName, System::Collections::Generic::IEnumerable<System::String ^> ^ searchedLocations);
public ViewNotFoundEventData (Microsoft.AspNetCore.Mvc.ActionContext actionContext, bool isMainPage, Microsoft.AspNetCore.Mvc.ActionResult result, string viewName, System.Collections.Generic.IEnumerable<string> searchedLocations);
new Microsoft.AspNetCore.Mvc.Diagnostics.ViewNotFoundEventData : Microsoft.AspNetCore.Mvc.ActionContext * bool * Microsoft.AspNetCore.Mvc.ActionResult * string * seq<string> -> Microsoft.AspNetCore.Mvc.Diagnostics.ViewNotFoundEventData
Public Sub New (actionContext As ActionContext, isMainPage As Boolean, result As ActionResult, viewName As String, searchedLocations As IEnumerable(Of String))
参数
- actionContext
- ActionContext
- isMainPage
- Boolean
这是否是main页。
- result
- ActionResult
- viewName
- String
视图的名称。
- searchedLocations
- IEnumerable<String>
搜索视图的位置。