Show / Hide Table of Contents

Class ViewFinder

Implementation of IFindsView which searches-for and finds view files.

Inheritance
System.Object
ViewFinder
Implements
IFindsView
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: ZptSharp.Mvc5
Assembly: ZptSharp.Mvc5.dll
Syntax
public class ViewFinder : IFindsView

Constructors

| Improve this Doc View Source

ViewFinder(IMapsLocation, ITestForFileExistence)

Initializes a new instance of ViewFinder

Declaration
public ViewFinder(IMapsLocation mapper, ITestForFileExistence fileTester)
Parameters
Type Name Description
IMapsLocation mapper

A service to map virtual paths to real ones.

ITestForFileExistence fileTester

A service to test for the existence of a file.

Methods

| Improve this Doc View Source

FindView(String, String, String[])

Attempts to find a view, and returns a result indicating the outcome of the search.

Declaration
public FindViewResult FindView(string controllerName, string viewName, string[] searchLocationFormats)
Parameters
Type Name Description
System.String controllerName

The controller name for the desired view.

System.String viewName

The name of the desired view.

System.String[] searchLocationFormats

A collection of locations to search.

Returns
Type Description
FindViewResult

A result indicating success or failure.

Implements

IFindsView
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX