ViewEngineResult Class

Syntax

public class ViewEngineResult

GitHub

View on GitHub

class Microsoft.AspNet.Mvc.Rendering.ViewEngineResult

Properties

SearchedLocations()
Return type:System.Collections.Generic.IEnumerable{System.String}
public IEnumerable<string> SearchedLocations { get; }
Success()
Return type:System.Boolean
public bool Success { get; }
View()
Return type:Microsoft.AspNet.Mvc.Rendering.IView
public IView View { get; }
ViewName()
Return type:System.String
public string ViewName { get; }

Methods

Microsoft.AspNet.Mvc.Rendering.ViewEngineResult.EnsureSuccessful()
Return type:Microsoft.AspNet.Mvc.Rendering.ViewEngineResult
public ViewEngineResult EnsureSuccessful()
Found(System.String, Microsoft.AspNet.Mvc.Rendering.IView)
Arguments:
Return type:

Microsoft.AspNet.Mvc.Rendering.ViewEngineResult

public static ViewEngineResult Found(string viewName, IView view)
NotFound(System.String, System.Collections.Generic.IEnumerable<System.String>)
Arguments:
  • viewName (System.String) –
  • searchedLocations (System.Collections.Generic.IEnumerable{System.String}) –
Return type:

Microsoft.AspNet.Mvc.Rendering.ViewEngineResult

public static ViewEngineResult NotFound(string viewName, IEnumerable<string> searchedLocations)