Class FindViewResult
Represents the result from FindView(String, String, String[]).
Inheritance
System.Object
FindViewResult
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 FindViewResult
Constructors
| Improve this Doc View SourceFindViewResult(String)
Initializes an instance of FindViewResult when a view was successfully found.
Declaration
public FindViewResult(string path)
Parameters
Type | Name | Description |
---|---|---|
System.String | path | The path to the view file. |
FindViewResult(String[])
Initializes an instance of FindViewResult when a view was not found.
Declaration
public FindViewResult(string[] attemptedLocations)
Parameters
Type | Name | Description |
---|---|---|
System.String[] | attemptedLocations | The (unsuccesfully) searched locations. |
Properties
| Improve this Doc View SourceAttemptedLocations
Gets a collection of the locations which were unsuccesfully searched, when Success is false.
Declaration
public string[] AttemptedLocations { get; }
Property Value
Type | Description |
---|---|
System.String[] | The searched locations. |
Path
Gets the file path to the view, assuming that Success is true.
Declaration
public string Path { get; }
Property Value
Type | Description |
---|---|
System.String | The path to the view file. |
Success
Gets a value indicating whether or not a view was found.
Declaration
public bool Success { get; }
Property Value
Type | Description |
---|---|
System.Boolean | Whether or not the result was a success. |