RazorPageResult Class

Summary

Represents the results of locating a [Microsoft.AspNet.Mvc.Razor.IRazorPage](Microsoft.AspNet.Mvc.Razor.IRazorPage.yml).

Syntax

public class RazorPageResult

GitHub

View on GitHub

class Microsoft.AspNet.Mvc.Razor.RazorPageResult

Constructors

RazorPageResult(System.String, Microsoft.AspNet.Mvc.Razor.IRazorPage)

Initializes a new instance of [Microsoft.AspNet.Mvc.Razor.RazorPageResult](Microsoft.AspNet.Mvc.Razor.RazorPageResult.yml) for a successful discovery.

Arguments:
  • name (System.String) – The name of the page that was located.
  • page (Microsoft.AspNet.Mvc.Razor.IRazorPage) – The located [Microsoft.AspNet.Mvc.Razor.IRazorPage](Microsoft.AspNet.Mvc.Razor.IRazorPage.yml).
public RazorPageResult(string name, IRazorPage page)
RazorPageResult(System.String, System.Collections.Generic.IEnumerable<System.String>)

Initializes a new instance of [Microsoft.AspNet.Mvc.Razor.RazorPageResult](Microsoft.AspNet.Mvc.Razor.RazorPageResult.yml) for an unsuccessful discovery.

Arguments:
  • name (System.String) – The name of the page that was located.
  • searchedLocations (System.Collections.Generic.IEnumerable{System.String}) –
public RazorPageResult(string name, IEnumerable<string> searchedLocations)

Properties

Name()

Gets the name of the page being located.

Return type:System.String
public string Name { get; }
Page()

Gets the [Microsoft.AspNet.Mvc.Razor.IRazorPage](Microsoft.AspNet.Mvc.Razor.IRazorPage.yml) if found.

Return type:Microsoft.AspNet.Mvc.Razor.IRazorPage
public IRazorPage Page { get; }
SearchedLocations()

Gets the locations that were searched when [Microsoft.AspNet.Mvc.Razor.RazorPageResult.Page](Microsoft.AspNet.Mvc.Razor.RazorPageResult.yml) could not be located.

Return type:System.Collections.Generic.IEnumerable{System.String}
public IEnumerable<string> SearchedLocations { get; }