ViewEngineResult Class¶
- Namespace
Microsoft.AspNetCore.Mvc.ViewEngines
- Assemblies
- Microsoft.AspNetCore.Mvc.ViewFeatures
Methods¶
-
EnsureSuccessful
(System.Collections.Generic.IEnumerable<System.String>)¶ Ensure this
Microsoft.AspNetCore.Mvc.ViewEngines.ViewEngineResult
was successful.Arguments: originalLocations (System.Collections.Generic.IEnumerable<System.String>) – Additional Microsoft.AspNetCore.Mvc.ViewEngines.ViewEngineResult.SearchedLocations
to include in the thrownSystem.InvalidOperationException
ifMicrosoft.AspNetCore.Mvc.ViewEngines.ViewEngineResult.Success
is <code>false</code>.Return type: Microsoft.AspNetCore.Mvc.ViewEngines.ViewEngineResult Returns: This Microsoft.AspNetCore.Mvc.ViewEngines.ViewEngineResult
ifMicrosoft.AspNetCore.Mvc.ViewEngines.ViewEngineResult.Success
is <code>true</code>.public ViewEngineResult EnsureSuccessful(IEnumerable<string> originalLocations)
-
Found
(System.String, Microsoft.AspNetCore.Mvc.ViewEngines.IView)¶ Return type: Microsoft.AspNetCore.Mvc.ViewEngines.ViewEngineResult public static ViewEngineResult Found(string viewName, IView view)
-
NotFound
(System.String, System.Collections.Generic.IEnumerable<System.String>)¶ Return type: Microsoft.AspNetCore.Mvc.ViewEngines.ViewEngineResult public static ViewEngineResult NotFound(string viewName, IEnumerable<string> searchedLocations)
-
Properties¶
-
Microsoft.AspNetCore.Mvc.ViewEngines.ViewEngineResult.
SearchedLocations
¶ Return type: System.Collections.Generic.IEnumerable<System.String> public IEnumerable<string> SearchedLocations { get; }
-
Microsoft.AspNetCore.Mvc.ViewEngines.ViewEngineResult.
Success
¶ Return type: System.Boolean public bool Success { get; }
-
Microsoft.AspNetCore.Mvc.ViewEngines.ViewEngineResult.
View
¶ Return type: Microsoft.AspNetCore.Mvc.ViewEngines.IView public IView View { get; }
-
Microsoft.AspNetCore.Mvc.ViewEngines.ViewEngineResult.
ViewName
¶ Return type: System.String public string ViewName { get; }
-