IRazorPageFactory Interface

Summary

Defines methods that are used for creating [Microsoft.AspNet.Mvc.Razor.IRazorPage](Microsoft.AspNet.Mvc.Razor.IRazorPage.yml) instances at a given path.

Syntax

public interface IRazorPageFactory

GitHub

View on GitHub

interface Microsoft.AspNet.Mvc.Razor.IRazorPageFactory

Methods

CreateInstance(System.String)

Creates a [Microsoft.AspNet.Mvc.Razor.IRazorPage](Microsoft.AspNet.Mvc.Razor.IRazorPage.yml) for the specified path.

Arguments:
  • relativePath (System.String) – The path to locate the page.
Return type:

Microsoft.AspNet.Mvc.Razor.IRazorPage

Returns:

The IRazorPage instance if it exists, null otherwise.

IRazorPage CreateInstance(string relativePath)