共用方式為


IRazorPageFactoryProvider.CreateFactory(String) 方法

定義

IRazorPage建立指定路徑的處理站。

public:
 Microsoft::AspNetCore::Mvc::Razor::RazorPageFactoryResult CreateFactory(System::String ^ relativePath);
public Microsoft.AspNetCore.Mvc.Razor.RazorPageFactoryResult CreateFactory (string relativePath);
abstract member CreateFactory : string -> Microsoft.AspNetCore.Mvc.Razor.RazorPageFactoryResult
Public Function CreateFactory (relativePath As String) As RazorPageFactoryResult

參數

relativePath
String

要尋找頁面的路徑。

傳回

RazorPageFactoryResult 執行個體。

適用於